Class: VariableDefinition

VariableDefinition(name, type, defaultValueopt)

new VariableDefinition(name, type, defaultValueopt)

This constructor should not be invoked directly. Use the factory function Client#variable to create a VariableDefinition.

Parameters:
Name Type Attributes Description
name String

The name of the variable.

type String

The GraphQL type of the variable.

defaultValue * <optional>

The default value of the variable.

Source: