Merge pull request #369 from nagledb/nagledb-doc-default-field-resolver

Updated default field resolver code in documentation.
This commit is contained in:
Vladimir Razuvaev 2018-11-03 16:13:57 +07:00 committed by GitHub
commit 6f8aed800e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
} }
``` ```