You are here

public function ResolverBuilder::tap in GraphQL 8.4

Register a resolver.

Parameters

\Drupal\graphql\GraphQL\Resolver\ResolverInterface $callback:

Return value

\Drupal\graphql\GraphQL\Resolver\Tap

1 call to ResolverBuilder::tap()
ResolverBuilder::context in src/GraphQL/ResolverBuilder.php
Add a context that is available for further resolvers.

File

src/GraphQL/ResolverBuilder.php, line 58

Class

ResolverBuilder
Wires and maps different resolvers together to build the GraphQL tree.

Namespace

Drupal\graphql\GraphQL

Code

public function tap(ResolverInterface $callback) {
  return new Tap($callback);
}