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



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

def adapter
  self
end

#customize_query(query, representations) ⇒ Object



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

def customize_query(query, representations)
  nil
end

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



301
302
303
# File 'lib/elastic_graph/apollo/graphql/entities_field_resolver.rb', line 301

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

#index_search_hits(response) ⇒ Object



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

def index_search_hits(response)
  nil
end

#indexed?Boolean

Returns:

  • (Boolean)


305
306
307
# File 'lib/elastic_graph/apollo/graphql/entities_field_resolver.rb', line 305

def indexed?
  false
end