You are here

public function ResolverRegistryInterface::addTypeResolver in GraphQL 8.4

Add a type resolver.

@todo Type resolvers should also get their own interface.

Parameters

string $abstract:

callable $resolver:

Return value

$this

1 method overrides ResolverRegistryInterface::addTypeResolver()
ResolverRegistry::addTypeResolver in src/GraphQL/ResolverRegistry.php
Add a type resolver.

File

src/GraphQL/ResolverRegistryInterface.php, line 70

Class

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

Namespace

Drupal\graphql\GraphQL

Code

public function addTypeResolver($abstract, callable $resolver);