Class: ElasticGraph::GraphQL::Resolvers::Object::WithLookahead
- Inherits:
-
Object
- Object
- ElasticGraph::GraphQL::Resolvers::Object::WithLookahead
- Defined in:
- lib/elastic_graph/graphql/resolvers/object.rb
Instance Method Summary collapse
-
#initialize(elasticgraph_graphql:, config:) ⇒ WithLookahead
constructor
A new instance of WithLookahead.
- #resolve(field:, object:, args:, context:, lookahead:) ⇒ Object
Constructor Details
#initialize(elasticgraph_graphql:, config:) ⇒ WithLookahead
Returns a new instance of WithLookahead.
15 16 17 |
# File 'lib/elastic_graph/graphql/resolvers/object.rb', line 15 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:, lookahead:) ⇒ Object
19 20 21 |
# File 'lib/elastic_graph/graphql/resolvers/object.rb', line 19 def resolve(field:, object:, args:, context:, lookahead:) object.resolve(field: field, object: object, args: args, context: context, lookahead: lookahead) end |