Class: GraphQL::Api::Resolvers::QueryObjectQuery
- Inherits:
-
Object
- Object
- GraphQL::Api::Resolvers::QueryObjectQuery
- Defined in:
- lib/graphql/api/resolvers/query_object_query.rb
Instance Method Summary collapse
- #call(obj, args, ctx) ⇒ Object
-
#initialize(query_object) ⇒ QueryObjectQuery
constructor
A new instance of QueryObjectQuery.
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 |