Class: GraphQL::Language::Nodes::SchemaExtension

Inherits:
AbstractNode
  • Object
show all
Defined in:
lib/graphql/language/nodes.rb

Instance Attribute Summary collapse

Attributes inherited from AbstractNode

#col, #filename, #line

Instance Method Summary collapse

Methods inherited from AbstractNode

#eql?, #initialize, #position, #to_query_string

Constructor Details

This class inherits a constructor from GraphQL::Language::Nodes::AbstractNode

Instance Attribute Details

#directivesObject Also known as: children

Returns the value of attribute directives



407
408
409
# File 'lib/graphql/language/nodes.rb', line 407

def directives
  @directives
end

#mutationObject

Returns the value of attribute mutation



407
408
409
# File 'lib/graphql/language/nodes.rb', line 407

def mutation
  @mutation
end

#queryObject

Returns the value of attribute query



407
408
409
# File 'lib/graphql/language/nodes.rb', line 407

def query
  @query
end

#subscriptionObject

Returns the value of attribute subscription



407
408
409
# File 'lib/graphql/language/nodes.rb', line 407

def subscription
  @subscription
end

Instance Method Details

#initialize_node(query: nil, mutation: nil, subscription: nil, directives: []) ⇒ Object



409
410
411
412
413
414
# File 'lib/graphql/language/nodes.rb', line 409

def initialize_node(query: nil, mutation: nil, subscription: nil, directives: [])
  @query = query
  @mutation = mutation
  @subscription = subscription
  @directives = directives
end

#scalarsObject



416
417
418
# File 'lib/graphql/language/nodes.rb', line 416

def scalars
  [query, mutation, subscription]
end