Class: GraphQL::Language::Nodes::SchemaDefinition
- Inherits:
-
AbstractNode
- Object
- AbstractNode
- GraphQL::Language::Nodes::SchemaDefinition
- Defined in:
- lib/graphql/language/nodes.rb
Instance Attribute Summary collapse
-
#directives ⇒ Object
(also: #children)
Returns the value of attribute directives.
-
#mutation ⇒ Object
Returns the value of attribute mutation.
-
#query ⇒ Object
Returns the value of attribute query.
-
#subscription ⇒ Object
Returns the value of attribute subscription.
Attributes inherited from AbstractNode
Instance Method Summary collapse
- #initialize_node(query: nil, mutation: nil, subscription: nil, directives: []) ⇒ Object
- #scalars ⇒ Object
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
#directives ⇒ Object Also known as: children
Returns the value of attribute directives.
390 391 392 |
# File 'lib/graphql/language/nodes.rb', line 390 def directives @directives end |
#mutation ⇒ Object
Returns the value of attribute mutation.
390 391 392 |
# File 'lib/graphql/language/nodes.rb', line 390 def mutation @mutation end |
#query ⇒ Object
Returns the value of attribute query.
390 391 392 |
# File 'lib/graphql/language/nodes.rb', line 390 def query @query end |
#subscription ⇒ Object
Returns the value of attribute subscription.
390 391 392 |
# File 'lib/graphql/language/nodes.rb', line 390 def subscription @subscription end |
Instance Method Details
#initialize_node(query: nil, mutation: nil, subscription: nil, directives: []) ⇒ Object
392 393 394 395 396 397 |
# File 'lib/graphql/language/nodes.rb', line 392 def initialize_node(query: nil, mutation: nil, subscription: nil, directives: []) @query = query @mutation = mutation @subscription = subscription @directives = directives end |
#scalars ⇒ Object
399 400 401 |
# File 'lib/graphql/language/nodes.rb', line 399 def scalars [query, mutation, subscription] end |