Hi Team,
I'd like to check if a (User) node has a -[:relationship]-> with Group node. Should I just use MATCH or both MATCH and EXISTS to check if a relationship exists between to nodes with given unique ID.
Thanks,
Arun
Hi Team,
I'd like to check if a (User) node has a -[:relationship]-> with Group node. Should I just use MATCH or both MATCH and EXISTS to check if a relationship exists between to nodes with given unique ID.
Thanks,
Arun
Wow! This is a perfect solution. However, it may be slow when we have many nodes and relationships. Should we add an index on relationships or nodes with the name to make it faster?
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Using match and exists to check if a relationship exists | 2 | 2341 | April 14, 2022 | |
| Full text search on nodes that have existing relationships efficiently | 16 | 1925 | June 25, 2020 | |
| Prevent relationship isomorphism in exists clause | 4 | 83 | July 18, 2022 | |
| Neo4j index issues | 5 | 411 | August 20, 2021 | |
| Match relationships if a certain parameter exists | 2 | 395 | September 17, 2020 |