You are here

interface ResolverInterface in GraphQL 8.4

Defines how to resolve a value for a given field.

Hierarchy

Expanded class hierarchy of ResolverInterface

All classes that implement ResolverInterface

6 files declare their use of ResolverInterface
DataProducerProxy.php in src/Plugin/GraphQL/DataProducer/DataProducerProxy.php
MockingTrait.php in tests/src/Traits/MockingTrait.php
ResolverBuilder.php in src/GraphQL/ResolverBuilder.php
ResolverBuilderTest.php in tests/src/Kernel/ResolverBuilderTest.php
ResolverRegistry.php in src/GraphQL/ResolverRegistry.php

... See full list

File

src/GraphQL/Resolver/ResolverInterface.php, line 12

Namespace

Drupal\graphql\GraphQL\Resolver
View source
interface ResolverInterface {

  /**
   * Resolve values for the fields.
   *
   * @param mixed $value
   * @param mixed $args
   * @param \Drupal\graphql\GraphQL\Execution\ResolveContext $context
   * @param \GraphQL\Type\Definition\ResolveInfo $info
   * @param \Drupal\graphql\GraphQL\Execution\FieldContext $field
   *
   * @return mixed
   */
  public function resolve($value, $args, ResolveContext $context, ResolveInfo $info, FieldContext $field);

}

Members

Namesort descending Modifiers Type Description Overrides
ResolverInterface::resolve public function Resolve values for the fields. 13