public function ResolverBuilder::compose in GraphQL 8.4
Combine multiple resolvers in a chain resolving after each other.
Parameters
\Drupal\graphql\GraphQL\Resolver\ResolverInterface ...$resolvers:
Return value
\Drupal\graphql\GraphQL\Resolver\Composite
File
- src/
GraphQL/ ResolverBuilder.php, line 47
Class
- ResolverBuilder
- Wires and maps different resolvers together to build the GraphQL tree.
Namespace
Drupal\graphql\GraphQLCode
public function compose(ResolverInterface ...$resolvers) {
return new Composite($resolvers);
}