Class: ElasticGraph::GraphQL::Resolvers::Object::WithoutLookahead

Inherits:
Object
  • Object
show all
Defined in:
lib/elastic_graph/graphql/resolvers/object.rb

Instance Method Summary collapse

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