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, #filename, #line

Instance Method Summary collapse

Methods inherited from AbstractNode

#children, #eql?, #initialize, #position, #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



388
389
390
# File 'lib/graphql/language/nodes.rb', line 388

def mutation
  @mutation
end

#queryObject

Returns the value of attribute query



388
389
390
# File 'lib/graphql/language/nodes.rb', line 388

def query
  @query
end

#subscriptionObject

Returns the value of attribute subscription



388
389
390
# File 'lib/graphql/language/nodes.rb', line 388

def subscription
  @subscription
end

Instance Method Details

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



390
391
392
393
394
# File 'lib/graphql/language/nodes.rb', line 390

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

#scalarsObject



396
397
398
# File 'lib/graphql/language/nodes.rb', line 396

def scalars
  [query, mutation, subscription]
end