class GraphQL::Api::QueryType

Attributes

ctx[RW]
inputs[RW]

Public Class Methods

arguments(arguments=nil) click to toggle source
# File lib/graphql/api/query_type.rb, line 10
def self.arguments(arguments=nil)
  @arguments = arguments if arguments
  @arguments || []
end
new(inputs, ctx) click to toggle source
# File lib/graphql/api/query_type.rb, line 5
def initialize(inputs, ctx)
  @inputs = inputs
  @ctx = ctx
end
return_type(type=nil) click to toggle source
# File lib/graphql/api/query_type.rb, line 15
def self.return_type(type=nil)
  @return_type = type if type
  @return_type
end

Public Instance Methods

execute() click to toggle source
# File lib/graphql/api/query_type.rb, line 20
def execute
end