public function Composite::add in GraphQL 8.4
Add one more producer.
Parameters
\Drupal\graphql\GraphQL\Resolver\ResolverInterface $resolver: DataProducerProxy object.
File
- src/
GraphQL/ Resolver/ Composite.php, line 38
Class
- Composite
- Resolves by calling a chain of resolvers after each other.
Namespace
Drupal\graphql\GraphQL\ResolverCode
public function add(ResolverInterface $resolver) : void {
$this->resolvers[] = $resolver;
}