You are here

public function ResolverBuilder::fromValue in GraphQL 8.4

Adds a fixed value to resolve to.

Parameters

mixed $value:

Return value

\Drupal\graphql\GraphQL\Resolver\Value

File

src/GraphQL/ResolverBuilder.php, line 131

Class

ResolverBuilder
Wires and maps different resolvers together to build the GraphQL tree.

Namespace

Drupal\graphql\GraphQL

Code

public function fromValue($value) {
  return new Value($value);
}