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