Class: GraphQL::Api::QueryType
- Inherits:
-
Object
- Object
- GraphQL::Api::QueryType
- Defined in:
- lib/graphql/api/query_type.rb
Instance Attribute Summary collapse
-
#ctx ⇒ Object
Returns the value of attribute ctx.
-
#inputs ⇒ Object
Returns the value of attribute inputs.
Class Method Summary collapse
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(inputs, ctx) ⇒ QueryType
constructor
A new instance of QueryType.
Constructor Details
#initialize(inputs, ctx) ⇒ QueryType
Returns a new instance of QueryType.
5 6 7 8 |
# File 'lib/graphql/api/query_type.rb', line 5 def initialize(inputs, ctx) @inputs = inputs @ctx = ctx end |
Instance Attribute Details
#ctx ⇒ Object
Returns the value of attribute ctx.
3 4 5 |
# File 'lib/graphql/api/query_type.rb', line 3 def ctx @ctx end |
#inputs ⇒ Object
Returns the value of attribute inputs.
3 4 5 |
# File 'lib/graphql/api/query_type.rb', line 3 def inputs @inputs end |
Class Method Details
.arguments(arguments = nil) ⇒ Object
10 11 12 13 |
# File 'lib/graphql/api/query_type.rb', line 10 def self.arguments(arguments=nil) @arguments = arguments if arguments @arguments || [] end |
.return_type(type = nil) ⇒ Object
15 16 17 18 |
# File 'lib/graphql/api/query_type.rb', line 15 def self.return_type(type=nil) @return_type = type if type @return_type end |
Instance Method Details
#execute ⇒ Object
20 21 |
# File 'lib/graphql/api/query_type.rb', line 20 def execute end |