Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
09-07-2020 01:42 AM
Hi there!
Is it possible to make a recursive query depending on conditions?
I have following graph and want to get all child Elements, where node HAS the data.
Solved! Go to Solution.
09-08-2020 12:06 AM
Thanks for the replies!
This query worked perfect for me:
MATCH p=(n)-[r:CHILD *1..]->(c)
WHERE n.hash = "ID_3ef8f14f-7eb6-4c58-b0bc-6a24f4ddc26a"
AND c.aframeProperty <> "null"
RETURN p Limit 1
09-07-2020 06:53 AM
Could you be a bit more specific about what you mean by 'data' here? Do you want to find nodes which have at least one property?
For normal searches, this may help.
Maybe if you're looking to test against a list, the function keys() will help.
09-07-2020 06:58 PM
I agree some additional information is needed to help guide you to a solution. There a couple different ways you could attack this, but some additional context would be helpful.
09-08-2020 12:06 AM
Thanks for the replies!
This query worked perfect for me:
MATCH p=(n)-[r:CHILD *1..]->(c)
WHERE n.hash = "ID_3ef8f14f-7eb6-4c58-b0bc-6a24f4ddc26a"
AND c.aframeProperty <> "null"
RETURN p Limit 1
09-11-2020 03:42 AM
If you find a solution to your question, in this case you answered your own question, be sure to mark it the response as a solution so people know the question has been solved.
All the sessions of the conference are now available online