@@ -238,14 +238,14 @@ func execFieldSelection(ctx context.Context, r *Request, s *resolvable.Schema, f
238
238
if ! f .field .HasError && len (f .field .Directives ) > 0 {
239
239
for _ , directive := range f .field .Directives {
240
240
if visitor , ok := r .Visitors [directive .Name .Name ]; ok {
241
- returned , visitorErr := visitor .After (ctx , directive , result .Interface ())
241
+ modified , visitorErr := visitor .After (ctx , directive , result .Interface ())
242
242
if visitorErr != nil {
243
243
err := errors .Errorf ("%s" , visitorErr )
244
244
err .Path = path .toSlice ()
245
245
err .ResolverError = visitorErr
246
246
return err
247
247
} else {
248
- result = reflect .ValueOf (returned )
248
+ result = reflect .ValueOf (modified )
249
249
}
250
250
}
251
251
}
@@ -286,14 +286,14 @@ func execFieldSelection(ctx context.Context, r *Request, s *resolvable.Schema, f
286
286
if ! f .field .HasError && len (f .field .Directives ) > 0 {
287
287
for _ , directive := range f .field .Directives {
288
288
if visitor , ok := r .Visitors [directive .Name .Name ]; ok {
289
- returned , visitorErr := visitor .After (ctx , directive , result .Interface ())
289
+ modified , visitorErr := visitor .After (ctx , directive , result .Interface ())
290
290
if visitorErr != nil {
291
291
err := errors .Errorf ("%s" , visitorErr )
292
292
err .Path = path .toSlice ()
293
293
err .ResolverError = visitorErr
294
294
return err
295
295
} else {
296
- result = reflect .ValueOf (returned )
296
+ result = reflect .ValueOf (modified )
297
297
}
298
298
}
299
299
}
0 commit comments