interface ResolverInterface in GraphQL 8.4
Defines how to resolve a value for a given field.
Hierarchy
- interface \Drupal\graphql\GraphQL\Resolver\ResolverInterface
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
File
- src/
GraphQL/ Resolver/ ResolverInterface.php, line 12
Namespace
Drupal\graphql\GraphQL\ResolverView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ResolverInterface:: |
public | function | Resolve values for the fields. | 13 |