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
Method | Modifiers | Description |
---|---|---|
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
Parameter | Type | Description |
---|---|---|
name | string | Name of the cloud function |
data | object | JSON data to pass to the cloud function |
Returns:
Promise<object>
JSON data returned by the cloud function
Updated over 1 year ago