Number ​
- Type
- Class
- Namespace
- craft\gql\types
- Inherits
- craft\gql\types\Number »
GraphQL\Type\Definition\ScalarType - Implements
- craft\gql\base\SingularTypeInterface
- Since
- 3.4.0
Class Number implements the Number scalar type for GraphQL.
Public Properties ​
| Property | Description |
|---|---|
| description | string |
| name | string |
description ​
- Type
- string
- Default value
'TheNumberscalar type represents a number that can be a float, an integer or a null value.'
name ​
- Type
- string
- Default value
'Number'
Public Methods ​
| Method | Description |
|---|---|
| getName() | |
| getType() | Returns a singleton instance to ensure one type per schema. |
| parseLiteral() | |
| parseValue() | |
| serialize() |
getName() ​
Returns ​
getType() ​
Returns a singleton instance to ensure one type per schema.
Returns ​
parseLiteral() ​
Arguments ​
$valueNode$variables
parseValue() ​
Arguments ​
$value
serialize() ​
Arguments ​
$value