Method: Neo4j::Core::Query#response

Defined in:
lib/neo4j/core/query.rb

#responseObject



241
242
243
244
245
246
247
248
249
250
# File 'lib/neo4j/core/query.rb', line 241

def response
  return @response if @response

  @response = if session_is_new_api?
                @session.query(self, transaction: Transaction.current_for(@session), wrap_level: (:core_entity if unwrapped?))
              else
                @session._query(to_cypher, merge_params,
                                context: @options[:context], pretty_cypher: (pretty_cypher if self.class.pretty_cypher)).tap(&method(:raise_if_cypher_error!))
              end
end