public function ResolverBuilder::fromArgument in GraphQL 8.4
Adds a query argument value to resolve to.
Parameters
string $name:
Return value
\Drupal\graphql\GraphQL\Resolver\Argument
File
- src/
GraphQL/ ResolverBuilder.php, line 142
Class
- ResolverBuilder
- Wires and maps different resolvers together to build the GraphQL tree.
Namespace
Drupal\graphql\GraphQLCode
public function fromArgument($name) {
return new Argument($name);
}