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.

View source (opens new window)

# Public Properties

# description

Type
string (opens new window)
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.'

View source (opens new window)

# name

Type
string (opens new window)
Default value
'QueryArgument'

View source (opens new window)

# Public Methods

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

# __construct()

View source (opens new window)

Arguments

  • $config

# getName()

View source (opens new window)

Returns

string (opens new window)

# getType()

Returns a singleton instance to ensure one type per schema.

View source (opens new window)

Returns

craft\gql\types\QueryArgument

# parseLiteral()

View source (opens new window)

Arguments

  • $valueNode
  • $variables

# parseValue()

View source (opens new window)

Arguments

  • $value

# serialize()

View source (opens new window)

Arguments

  • $value