You are here

public function ResolverRegistry::getTypeResolver in GraphQL 8.4

Get the resolver for a given type name.

Parameters

string $type:

Return value

callable|null

Overrides ResolverRegistryInterface::getTypeResolver

1 call to ResolverRegistry::getTypeResolver()
ResolverRegistry::getRuntimeTypeResolver in src/GraphQL/ResolverRegistry.php
Returns the type resolver that should be used on runtime.

File

src/GraphQL/ResolverRegistry.php, line 143

Class

ResolverRegistry
Contains all the mappings how to resolve a GraphQL request.

Namespace

Drupal\graphql\GraphQL

Code

public function getTypeResolver($type) {
  return $this->typeResolvers[$type] ?? NULL;
}