Class: GraphQL::Client::FragmentDefinition

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, Definition, Module
Instance Chain:
self, Definition, Module
Inherits: GraphQL::Client::Definition
Defined in: lib/graphql/client/fragment_definition.rb


Specific fragment definition subtype.

Constant Summary

Definition - Inherited


Class Method Summary

Definition - Inherited

Instance Attribute Summary

Definition - Inherited


Internal: Get associated owner ::GraphQL::Client instance.


Internal: Get underlying operation or fragment definition AST node for definition.


Public: Get document with only the definitions needed to perform this operation.


Internal root schema class for definition.


Internal: Get original document that created this definition, without any additional dependencies.


Public: Returns the Ruby source filename and line number containing this definition was not defined in Ruby.

Instance Method Summary

Definition - Inherited


Public: Global name of definition in client document.


Internal: Nodes AST indexes.

#new, #cast_object, #flatten_spreads, #index_node_definitions, #index_spreads

Constructor Details

This class inherits a constructor from GraphQL::Client::Definition

Instance Method Details

#new(obj, *args)

[ GitHub ]

# File 'lib/graphql/client/fragment_definition.rb', line 9

def new(obj, *args)
  if obj.is_a?(Hash)
    raise TypeError, "constructing fragment wrapper from Hash is deprecated"