Skip to content

QueryArgument ​

Type
Class
Namespace
craft\gql\types
Inherits
craft\gql\types\QueryArgument » GraphQL\Type\Definition\ScalarType
Since
3.3.14

Class QueryArgument

View source

Public Properties ​

PropertyDescription
descriptionstring
namestring

description ​

Type
string
Default value
'The QueryArgument scalar type represents a value to be using in Craft element queries. It can be an integer, a string, or a boolean value.'

View source

name ​

Type
string
Default value
'QueryArgument'

View source

Public Methods ​

MethodDescription
__construct()
getName()
getType()Returns a singleton instance to ensure one type per schema.
parseLiteral()
parseValue()
serialize()

__construct() ​

View source

Arguments ​

  • $config

getName() ​

View source

Returns ​

string

getType() ​

Returns a singleton instance to ensure one type per schema.

View source

Returns ​

craft\gql\types\QueryArgument

parseLiteral() ​

View source

Arguments ​

  • $valueNode
  • $variables

parseValue() ​

View source

Arguments ​

  • $value

serialize() ​

View source

Arguments ​

  • $value