new Cloud()
Contains functions for calling and declaring
cloud functions.
Some functions are only available from Cloud Code.
Methods
(static) run(name, data, options) → {Parse.Promise}
Makes a call to a cloud function.
Parameters:
| Name | Type | Description |
|---|---|---|
name |
String
|
The function name. |
data |
Object
|
The parameters to send to the cloud function. |
options |
Object
|
A Backbone-style options object options.success, if set, should be a function to handle a successful call to a cloud function. options.error should be a function that handles an error running the cloud function. Both functions are optional. Both functions take a single argument. |