Skip to content

Latest commit

 

History

History
266 lines (102 loc) · 3.29 KB

VariableDefinitionNode.md

File metadata and controls

266 lines (102 loc) · 3.29 KB

VariableDefinitionNode

type Node = NameNode | DocumentNode | OperationDefinitionNode | VariableDefinitionNode | VariableNode | SelectionSetNode | FieldNode | ArgumentNode | FragmentSpreadNode | InlineFragmentNode | FragmentDefinitionNode | IntValueNode | FloatValueNode | StringValueNode | BooleanValueNode | EnumValueNode | ListValueNode | ObjectValueNode | ObjectFieldNode | DirectiveNode | ListTypeNode | NonNullTypeNode

Properties

kind

public string $kind

variable

public \GraphQL\Language\AST\VariableNode $variable

type

public \GraphQL\Language\AST\NamedTypeNode|\GraphQL\Language\AST\ListTypeNode|\GraphQL\Language\AST\NonNullTypeNode $type

defaultValue

public \GraphQL\Language\AST\VariableNode|\GraphQL\Language\AST\NullValueNode|\GraphQL\Language\AST\IntValueNode|\GraphQL\Language\AST\FloatValueNode|\GraphQL\Language\AST\StringValueNode|\GraphQL\Language\AST\BooleanValueNode|\GraphQL\Language\AST\EnumValueNode|\GraphQL\Language\AST\ListValueNode|\GraphQL\Language\AST\ObjectValueNode|null $defaultValue

directives

public \GraphQL\Language\AST\NodeList<\GraphQL\Language\AST\DirectiveNode> $directives

Inherited methods

__construct

public __construct((\GraphQL\Language\AST\NameNode|\GraphQL\Language\AST\NodeList|\GraphQL\Language\AST\SelectionSetNode|\GraphQL\Language\AST\Location|string|int|bool|float|null)[] $vars): mixed

Parameters:

Parameter Type Description
$vars (\GraphQL\Language\AST\NameNode|\GraphQL\Language\AST\NodeList|\GraphQL\Language\AST\SelectionSetNode|\GraphQL\Language\AST\Location|string|int|bool|float|null)[]

cloneDeep

public cloneDeep(): self

cloneValue

private cloneValue(string|\GraphQL\Language\AST\NodeList|\GraphQL\Language\AST\Location|\GraphQL\Language\AST\Node|(\GraphQL\Language\AST\Node|\GraphQL\Language\AST\NodeList|\GraphQL\Language\AST\Location)[] $value): string|\GraphQL\Language\AST\NodeList|\GraphQL\Language\AST\Location|\GraphQL\Language\AST\Node

Parameters:

Parameter Type Description
$value string|\GraphQL\Language\AST\NodeList|\GraphQL\Language\AST\Location|\GraphQL\Language\AST\Node|(\GraphQL\Language\AST\Node|\GraphQL\Language\AST\NodeList|\GraphQL\Language\AST\Location)[]

__toString

public __toString(): string

toArray

public toArray(bool $recursive = false): array

Parameters:

Parameter Type Description
$recursive bool

recursiveToArray

private recursiveToArray(\GraphQL\Language\AST\Node $node): array

Parameters:

Parameter Type Description
$node \GraphQL\Language\AST\Node