Corresponding to change in strapi-hook-bookshelf

afterFetchAll and beforeFetchAll hook definition added
This commit is contained in:
Prateek Narula 2019-03-12 17:26:51 +01:00 committed by GitHub
parent 5821b8ac15
commit c0688b6ace
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -20,6 +20,14 @@ module.exports = {
// After fetching a value.
// Fired after a `fetch` operation.
// afterFetch: async (model, response, options) => {},
// Before fetching all values.
// Fired before a `fetchAll` operation.
// beforeFetchAll: async (model, columns, options) => {},
// After fetching all values.
// Fired after a `fetchAll` operation.
// afterFetchAll: async (model, response, options) => {},
// Before creating a value.
// Fired before an `insert` query.