You are here

public function SchemaBuilderInterface::resolveType in GraphQL 8.3

Resolves a given value to a concrete type.

Parameters

string $name: The name of the interface or union type.

mixed $value: The value to resolve the concrete type for.

\Drupal\graphql\GraphQL\Execution\ResolveContext $context: The resolve context object.

\GraphQL\Type\Definition\ResolveInfo $info: The resolve info object.

Return value

\Drupal\graphql\Plugin\GraphQL\Types\TypePluginBase|null The object type that applies to the given value.

1 method overrides SchemaBuilderInterface::resolveType()
SchemaPluginBase::resolveType in src/Plugin/GraphQL/Schemas/SchemaPluginBase.php
Resolves a given value to a concrete type.

File

src/Plugin/SchemaBuilderInterface.php, line 109

Class

SchemaBuilderInterface

Namespace

Drupal\graphql\Plugin

Code

public function resolveType($name, $value, ResolveContext $context, ResolveInfo $info);