Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
04-15-2021 02:54 PM
Hi,
it´s a very simple question but I can't get it to work.
The endpoint code:
public List ....{
String query = "MATCH (u)-[r:INTERESADO_EN]->(c) \r\n"
+ "WHERE u.eMail='"+email+"' \r\n"
+ "RETURN * ";
try (Session session = sessionFor(database())) {
var records = session.readTransaction(tx -> tx.run(query).list());
return records;
}
}
It´s a very simple query, but the result is empty:
[{}]
By default, Ogma expects the records
response from neo4j to parse.
And the js function has to receive the records is:
function formatNeo4jQueryResult(response) {
const records = ;
response.values.forEach(value => {
const { nodes, relationships, segments } = value.adapted;
records.push({ _fields: nodes
.concat(relationships)
.concat([{ segments }]) });
});
return records;
}
How can I send the list record from cypher?
Thanks in advance!
Regards
05-03-2021 08:23 AM
Besides not having an answer to this, I would suggest to post this in the general driver questions.
Some notes:
All the sessions of the conference are now available online