Skip to content

Latest commit

 

History

History
281 lines (107 loc) · 3.14 KB

OperationDefinitionNode.md

File metadata and controls

281 lines (107 loc) · 3.14 KB

OperationDefinitionNode

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

name

public \GraphQL\Language\AST\NameNode|null $name

operation

public string $operation

variableDefinitions

public \GraphQL\Language\AST\NodeList<\GraphQL\Language\AST\VariableDefinitionNode> $variableDefinitions

directives

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

selectionSet

public \GraphQL\Language\AST\SelectionSetNode $selectionSet

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