Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
11-07-2022 01:32 AM
Hi there ,
How to remove same node relationships globally
with one line query.
How to query the nodes must have both side
of same relationships.
kindly see the attachments for better understandings
properties for each nodes :
countryCode | 91 |
mobile | MEFYNnF2cW1aWkZKeHBpRaTNnZz09OjoxMTEwMDAxMTAw |
name | khyati |
userId | 14161218 |
Solved! Go to Solution.
11-07-2022 05:11 AM
To delete relationships that refer to the same node:
match(a)-[r]-(a) delete r
How to query for relationships that connect two different nodes:
match(a)-[r]-(b) where id(a)<>id(b) return r
11-07-2022 05:11 AM
To delete relationships that refer to the same node:
match(a)-[r]-(a) delete r
How to query for relationships that connect two different nodes:
match(a)-[r]-(b) where id(a)<>id(b) return r
All the sessions of the conference are now available online