Hi,
I'm looking for a list of the request key-values that define CRUD / Data Type events. Does anyone know what they are or where I can find them?
Here's what I mean ...
The request object in a Cloud Code event (e.g. afterDelete on a Data Type) contains some properties and values that explain the type of request being made. For example:
On a data.destroySingle action, the request include the following key-value pairs:
action:
"DELETE"
specificAction:
"DeleteById"
And for data.destroy(filter) action, the following:
action:
"DELETE"
specificAction:
"DeleteByFilter"
I'm looking for the equivalent key-value pairs that define other CRUD actions (data.create, data.save, data.update etc).
And just in case it helps any of you out there, here's why / how I'm using this ...
I'm changing object ACL permissions and deleting/creating some data items on certain data events. To do this I need to identify the type of request - and thereby know where I can find important parameters within the request object. For example, assuming a request is about a single item (e.g. data.destroySingle) when it's actually a set of items (data.destroy(filter)) leads to errors.
Thanks & hope that helps
-Paul