diff --git a/docs/data-fetching.md b/docs/data-fetching.md index df357d0..4bc0cfb 100644 --- a/docs/data-fetching.md +++ b/docs/data-fetching.md @@ -118,7 +118,7 @@ function defaultFieldResolver($source, $args, $context, \GraphQL\Type\Definition } } - return $property instanceof \Closure ? $property($source, $args, $context) : $property; + return $property instanceof Closure ? $property($source, $args, $context, $info) : $property; } ``` @@ -270,4 +270,4 @@ Where **$promiseAdapter** is an instance of: * Other platforms: write your own class implementing interface:
[`GraphQL\Executor\Promise\PromiseAdapter`](reference.md#graphqlexecutorpromisepromiseadapter). -Then your **resolve** functions should return promises of your platform instead of `GraphQL\Deferred`s. \ No newline at end of file +Then your **resolve** functions should return promises of your platform instead of `GraphQL\Deferred`s.