Class: GraphQL::Api::QueryType

Inherits:
Object
  • Object
show all
Defined in:
lib/graphql/api/query_type.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

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

#ctxObject

Returns the value of attribute ctx.



3
4
5
# File 'lib/graphql/api/query_type.rb', line 3

def ctx
  @ctx
end

#inputsObject

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

#executeObject



20
21
# File 'lib/graphql/api/query_type.rb', line 20

def execute
end