Hi, Im trying to achieve the following but no success. Im trying to get all
users who have attributes defined by the definition nodes .
I can do this by creating multiple match statement like so
match (attribute:ATTR{id:1})-[]->(u)
match (attribute:ATTR{id:2})-[]->(u)
match (attribute:ATTR{id:3})-[]->(u)
match (attribute:ATTR{id:4})-[]->(u)
return u
//Results to user 1 which is correct
but this assumes I already know the exact attributes . I want to dynamic do
this based on the definition since you can have any arbitrary attributes .
I tried this which returns user 2 also but I don't want that
match (def:DEFINITION{id:1})-[]->(attribute:ATTR)-[]->(user:USER)
return user
//return user 1 and user 2
Thanks in advance
-ems
<https://lh5.googleusercontent.com/-qU-OISqLzlM/U7Sn9X1HJNI/AAAAAAAAABQ/oMeiDzUDzas/s1600/sample_graph.png>
--
You received this message because you are subscribed to the Google Groups
"Neo4j" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.