QueryArgument ​
- Type
- Class
- Namespace
- craft\gql\types
- Inherits
- craft\gql\types\QueryArgument »
GraphQL\Type\Definition\ScalarType - Implements
- craft\gql\base\SingularTypeInterface
- Since
- 3.3.14
Class QueryArgument implements the QueryArgument scalar type for GraphQL which can be a string, a number or a boolean value.
Public Properties ​
| Property | Description |
|---|---|
| description | string |
| name | string |
description ​
- Type
- string
- Default value
'TheQueryArgumentscalar type represents a value to be using in Craft element queries. It can be an integer, a string, or a boolean value.'
name ​
- Type
- string
- Default value
'QueryArgument'
Public Methods ​
| Method | Description |
|---|---|
| __construct() | |
| getName() | |
| getType() | Returns a singleton instance to ensure one type per schema. |
| parseLiteral() | |
| parseValue() | |
| serialize() |
__construct() ​
Arguments ​
$config
getName() ​
Returns ​
getType() ​
Returns a singleton instance to ensure one type per schema.
Returns ​
parseLiteral() ​
Arguments ​
$valueNode$variables
parseValue() ​
Arguments ​
$value
serialize() ​
Arguments ​
$value