public function Argument::resolve in GraphQL 8.4
Resolve values for the fields.
Parameters
mixed $value:
mixed $args:
\Drupal\graphql\GraphQL\Execution\ResolveContext $context:
\GraphQL\Type\Definition\ResolveInfo $info:
\Drupal\graphql\GraphQL\Execution\FieldContext $field:
Return value
mixed
Overrides ResolverInterface::resolve
File
- src/
GraphQL/ Resolver/ Argument.php, line 33
Class
- Argument
- Resolves by an argument name lookup.
Namespace
Drupal\graphql\GraphQL\ResolverCode
public function resolve($value, $args, ResolveContext $context, ResolveInfo $info, FieldContext $field) {
return $args[$this->name] ?? NULL;
}