Class: ElasticGraph::GraphQL::Resolvers::Object::WithoutLookahead
- Inherits:
-
Object
- Object
- ElasticGraph::GraphQL::Resolvers::Object::WithoutLookahead
- Defined in:
- lib/elastic_graph/graphql/resolvers/object.rb
Instance Method Summary collapse
-
#initialize(elasticgraph_graphql:, config:) ⇒ WithoutLookahead
constructor
A new instance of WithoutLookahead.
- #resolve(field:, object:, args:, context:) ⇒ Object
Constructor Details
#initialize(elasticgraph_graphql:, config:) ⇒ WithoutLookahead
Returns a new instance of WithoutLookahead.
25 26 27 |
# File 'lib/elastic_graph/graphql/resolvers/object.rb', line 25 def initialize(elasticgraph_graphql:, config:) # Nothing to initialize, but needs to be defined to satisfy the resolver interface. end |
Instance Method Details
#resolve(field:, object:, args:, context:) ⇒ Object
29 30 31 |
# File 'lib/elastic_graph/graphql/resolvers/object.rb', line 29 def resolve(field:, object:, args:, context:) object.resolve(field: field, object: object, args: args, context: context) end |