This is probably something really simple I'm missing but how can I filter nodes only with a relationship type .
Let's say I have the following nodes and relationships: m:Movie-[actedin]->p:person m:Movie-[director]->p:person
If I do a match query using :
m:Movie-[actedin]->p:person
I get back persons who directed as well. How can I filter it so that only person labels who have the actedin relationship are returned ? Thanks !
It was really simple, I forgot the colon. It works without the colon, it just ignores the relationship
m:Movie-[actedin]->p:person
m:Movie- [:actedin]->p:person
^
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.