Class: GraphQL::Schema::Addition

Inherits:
Object
  • Object
show all
Defined in:
lib/graphql/schema/addition.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(schema:, own_types:, new_types:) ⇒ Addition

Returns a new instance of Addition.



10
11
12
13
14
15
16
17
18
19
20
21
# File 'lib/graphql/schema/addition.rb', line 10

def initialize(schema:, own_types:, new_types:)
  @schema = schema
  @own_types = own_types
  @directives = Set.new
  @possible_types = {}
  @possible_types_sets = {}
  @types = {}
  @union_memberships = {}
  @references = {}.compare_by_identity
  @arguments_with_default_values = []
  add_type_and_traverse(new_types)
end

Instance Attribute Details

#arguments_with_default_values ⇒ Object (readonly)

Returns the value of attribute arguments_with_default_values.



8
9
10
# File 'lib/graphql/schema/addition.rb', line 8

def arguments_with_default_values
  @arguments_with_default_values
end

#directives ⇒ Object (readonly)

Returns the value of attribute directives.



8
9
10
# File 'lib/graphql/schema/addition.rb', line 8

def directives
  @directives
end

#possible_types ⇒ Object (readonly)

Returns the value of attribute possible_types.



8
9
10
# File 'lib/graphql/schema/addition.rb', line 8

def possible_types
  @possible_types
end

#references ⇒ Object (readonly)

Returns the value of attribute references.



8
9
10
# File 'lib/graphql/schema/addition.rb', line 8

def references
  @references
end

#types ⇒ Object (readonly)

Returns the value of attribute types.



8
9
10
# File 'lib/graphql/schema/addition.rb', line 8

def types
  @types
end

#union_memberships ⇒ Object (readonly)

Returns the value of attribute union_memberships.



8
9
10
# File 'lib/graphql/schema/addition.rb', line 8

def union_memberships
  @union_memberships
end