passes depth to all afterRead performFieldOperations
This commit is contained in:
@@ -4,6 +4,7 @@ const performFieldOperations = require('../../fields/performFieldOperations');
|
||||
|
||||
const register = async (args) => {
|
||||
const {
|
||||
depth,
|
||||
overrideAccess,
|
||||
config,
|
||||
collection: {
|
||||
@@ -81,6 +82,7 @@ const register = async (args) => {
|
||||
hook: 'afterRead',
|
||||
operationName: 'read',
|
||||
req,
|
||||
depth,
|
||||
});
|
||||
|
||||
// /////////////////////////////////////
|
||||
|
||||
@@ -6,6 +6,7 @@ const performFieldOperations = require('../../fields/performFieldOperations');
|
||||
|
||||
const update = async (args) => {
|
||||
const {
|
||||
depth,
|
||||
config,
|
||||
collection: {
|
||||
Model,
|
||||
@@ -115,6 +116,7 @@ const update = async (args) => {
|
||||
hook: 'afterRead',
|
||||
operationName: 'read',
|
||||
req,
|
||||
depth,
|
||||
});
|
||||
|
||||
// /////////////////////////////////////
|
||||
|
||||
Reference in New Issue
Block a user