Start a new topic

Business Logic: Invoking collection hook from custom endpoint

I am inserting a record from a business logic custom endpoint, but my collection hook (on every save) is not being invoked. How can I ensure that a collection hook is invoked when a record is inserted from a custom endpoint?
1 Comment

Hi Ryan,



This currently isn't possible. The collectionAccess module in business logic is meant to bypass the Kinvey API pipeline, and provide direct access to Mongo.



To implement what you are looking for, you would need to use the request module within business logic, and create a rest request to insert the data rather than use collectionAccess.
Login or Signup to post a comment