Module: GraphQL::Language::Nodes

Included in:
Parser
Defined in:
lib/graphql/language/nodes.rb

Defined Under Namespace

Classes: AbstractNode, Argument, Directive, DirectiveDefinition, DirectiveLocation, Document, Enum, EnumTypeDefinition, EnumTypeExtension, EnumValueDefinition, Field, FieldDefinition, FragmentDefinition, FragmentSpread, InlineFragment, InputObject, InputObjectTypeDefinition, InputObjectTypeExtension, InputValueDefinition, InterfaceTypeDefinition, InterfaceTypeExtension, ListType, NameOnlyNode, NonNullType, NullValue, ObjectTypeDefinition, ObjectTypeExtension, OperationDefinition, ScalarTypeDefinition, ScalarTypeExtension, SchemaDefinition, SchemaExtension, TypeName, UnionTypeDefinition, UnionTypeExtension, VariableDefinition, VariableIdentifier, WrapperType

Constant Summary collapse

NONE =
GraphQL::EmptyObjects::EMPTY_ARRAY

Instance Attribute Summary collapse

Instance Attribute Details

#nameString

Returns The identifier of the fragment to apply, corresponds with GraphQL::Language::Nodes::FragmentDefinition#name.

Returns:



# File 'lib/graphql/language/nodes.rb', line 447

#typeString?

Returns Name of the type this fragment applies to, or nil if this fragment applies to any type.

Returns:

  • (String, nil)

    Name of the type this fragment applies to, or nil if this fragment applies to any type



# File 'lib/graphql/language/nodes.rb', line 461