Class: GraphQL::Language::Nodes::SchemaDefinition

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

Instance Attribute Summary collapse

Attributes inherited from AbstractNode

#col, #line

Instance Method Summary collapse

Methods inherited from AbstractNode

child_attributes, #children, #eql?, inherited, #initialize, #position, scalar_attributes, #scalars, #to_query_string

Constructor Details

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

Instance Attribute Details

#mutationObject

Returns the value of attribute mutation


337
338
339
# File 'lib/graphql/language/nodes.rb', line 337

def mutation
  @mutation
end

#queryObject

Returns the value of attribute query


337
338
339
# File 'lib/graphql/language/nodes.rb', line 337

def query
  @query
end

#subscriptionObject

Returns the value of attribute subscription


337
338
339
# File 'lib/graphql/language/nodes.rb', line 337

def subscription
  @subscription
end

Instance Method Details

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


340
341
342
343
344
# File 'lib/graphql/language/nodes.rb', line 340

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