issue-tracker
issue-tracker copied to clipboard
Please, Update Docs. Add Cloud Functions and Cloud Trigers object structure for request and response objects
Please describe the types of Cloud functions and Triggers functions in Docs.
What do they get in request? What this function should return?
In Cloud Code Docs you use request Object in sample functions, but I don't get any info on what data this 'request' provide
will be great to add this object structure, to get an idea of how better use it.
for Cloud Function Code :
request:{
"params": Object with Params called function,
"master": Boolean, is MasterKey provided?
"user": Moralis.User Object (user, who call this function),
"log": Moralis.Logger,
"ip": IP were was called function,
"functionName": Text - functionName,
"context": {}
}
For Triger Before Save
request:{
"object": Moralis.Object - with new data to save,
"original": Moralis.Object - exist in DB, original before save,
"master": Boolean, is MasterKey provided?
"user": Moralis.User Object (user, who call this function),
"log": Moralis.Logger,
"ip": IP were was called function,
"context": {},
"triggerName": "beforeSave",
}