Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
12-17-2019 12:43 PM
Hello everyone,
I am new in Neo4j and Java programming, and I am trying to get all the properties of an object (node), giving as a condition that my ID must be equal to the text I am writing (abcd).
This is how I wrote it:
MatchQuery.send(JSON.stringify({"query" : "MATCH (n {name: {Id}}) WHERE n.Id = {name} RETURN n","params" : {"Id" : "abcd","name" : "abcd}}
I hope my question is clear and someone can help me.
Thanks!
12-17-2019 07:00 PM
Someone more familiar with the Java client might correct me, but I think the logic of that query currently reads "find any nodes whose name = "abcd" and whose Id also = "abcd". Is that the criteria you're trying to construct?
12-18-2019 01:06 AM
Hello, correct, that is the logic of the query, but my problem is that when I run the query I do not get results because there is something wrong. What I am looking for is how to correct the statement.
Thanks
12-22-2019 03:35 PM
Can you explain how the query should be behaving, that might help?
Also have you tried breaking it down into smaller parts, to confirm your data is as you expect? Maybe try matching on one property (name) and then separately matching on Id.
All the sessions of the conference are now available online