FunctionService class

Allows calls to module cloud functions.

Signature:

export declare class FunctionService extends ExternalObject 

Extends: ExternalObject

Remarks

Use Runtime.getFunctionService() to get an instance of this class.

Methods

MethodModifiersDescription
callCloudFunction(name, data)Calls a module cloud function with the given name and data.

FunctionService.callCloudFunction() method

Calls a module cloud function with the given name and data.

Signature:

callCloudFunction(name: string, data: object): Promise<object>;

Parameters

ParameterTypeDescription
namestringName of the cloud function
dataobjectJSON data to pass to the cloud function

Returns:

Promise<object>

JSON data returned by the cloud function