Class: ElasticGraph::Apollo::GraphQL::EntitiesFieldResolver::RepresentationWithoutIndex

Inherits:
Object
  • Object
show all
Defined in:
lib/elastic_graph/apollo/graphql/entities_field_resolver.rb

Instance Method Summary collapse

Instance Method Details

#adapterObject



282
283
284
# File 'lib/elastic_graph/apollo/graphql/entities_field_resolver.rb', line 282

def adapter
  self
end

#customize_query(query, representations) ⇒ Object



286
287
288
# File 'lib/elastic_graph/apollo/graphql/entities_field_resolver.rb', line 286

def customize_query(query, representations)
  nil
end

#identify_matching_hit(indexed_search_hits, representation, context:, index:) ⇒ Object



294
295
296
# File 'lib/elastic_graph/apollo/graphql/entities_field_resolver.rb', line 294

def identify_matching_hit(indexed_search_hits, representation, context:, index:)
  representation.representation_hash
end

#index_search_hits(response) ⇒ Object



290
291
292
# File 'lib/elastic_graph/apollo/graphql/entities_field_resolver.rb', line 290

def index_search_hits(response)
  nil
end

#indexed?Boolean

Returns:

  • (Boolean)


298
299
300
# File 'lib/elastic_graph/apollo/graphql/entities_field_resolver.rb', line 298

def indexed?
  false
end