passes depth to all afterRead performFieldOperations

This commit is contained in:
James
2020-07-20 12:44:29 -04:00
parent dd8f22db2a
commit 0bfc10d55c
17 changed files with 55 additions and 69 deletions

View File

@@ -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,
});
// /////////////////////////////////////

View File

@@ -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,
});
// /////////////////////////////////////