123456789_123456789_123456789_123456789_123456789_

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

Overview

Specific fragment definition subtype.

Constant Summary

Definition - Inherited

EMPTY_SET

Class Method Summary

Definition - Inherited

Instance Attribute Summary

Definition - Inherited

#client

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

#definition_node

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

#document

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

#schema_class

Internal root schema class for definition.

#source_document

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

#source_location

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

Instance Method Summary

Definition - Inherited

#definition_name

Public: Global name of definition in client document.

#indexes

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"
  end

  super
end