public function ResolverBuilder::callback in GraphQL 8.4
Register a callback as resolver.
Parameters
callable $callback:
Return value
\Drupal\graphql\GraphQL\Resolver\Callback
File
- src/
GraphQL/ ResolverBuilder.php, line 80
Class
- ResolverBuilder
- Wires and maps different resolvers together to build the GraphQL tree.
Namespace
Drupal\graphql\GraphQLCode
public function callback(callable $callback) {
return new Callback($callback);
}