...
https://devcenter.kinvey.com/rest/guides/flexservice-runtime
https://devcenter.kinvey.com/rest/reference/flex/reference.html#FlexDataEvents
Flex Service
Flex Events are exposed by the service object and invoked by the kinvey collections. Each event takes a single function as a handler. Events include: onInsert, onUpdate, onDelete, onGetAll etc. See doc above for more details.
Each handler function bound to an event, has the following parameters: : context, complete, and modules.
- context: current context of the request made to kinvey; here we will find any parameters passed as input in the query
- complete: handler for completing the data request
- module: contains several libraries for accessing kinvey functionality
On our end, we define a function for each desired event, then we
Flex Functions
Flex functions are used to execute custom code by either hooks, or in our case, endpoints.
...
Custom flex functions must recieve recive as parameters: (context, complete, modules).
...