You are here

public function ResolverRegistryInterface::addFieldResolver in GraphQL 8.4

Add a field resolver for a certain type.

Parameters

string $type:

string $field:

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

Return value

$this

1 method overrides ResolverRegistryInterface::addFieldResolver()
ResolverRegistry::addFieldResolver in src/GraphQL/ResolverRegistry.php
Add a field resolver for a certain type.

File

src/GraphQL/ResolverRegistryInterface.php, line 48

Class

ResolverRegistryInterface
Defines a registry to resolve any field in the GraphQL schema tree.

Namespace

Drupal\graphql\GraphQL

Code

public function addFieldResolver($type, $field, ResolverInterface $resolver);