Class: GraphQL::Api::Resolvers::QueryObjectQuery

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

Instance Method Summary collapse

Constructor Details

#initialize(query_object) ⇒ QueryObjectQuery

Returns a new instance of QueryObjectQuery.



5
6
7
# File 'lib/graphql/api/resolvers/query_object_query.rb', line 5

def initialize(query_object)
  @query_object = query_object
end

Instance Method Details

#call(obj, args, ctx) ⇒ Object



9
10
11
# File 'lib/graphql/api/resolvers/query_object_query.rb', line 9

def call(obj, args, ctx)
  @query_object.new(args, ctx).execute
end