You are here

ResolverInterface.php in GraphQL 8.4

File

src/GraphQL/Resolver/ResolverInterface.php
View source
<?php

namespace Drupal\graphql\GraphQL\Resolver;

use Drupal\graphql\GraphQL\Execution\FieldContext;
use Drupal\graphql\GraphQL\Execution\ResolveContext;
use GraphQL\Type\Definition\ResolveInfo;

/**
 * Defines how to resolve a value for a given field.
 */
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);

}

Interfaces

Namesort descending Description
ResolverInterface Defines how to resolve a value for a given field.