Multiple node properties for identifying node Unique

Can we identify several node properties uniquely in the neo4j graph database ?

Something like a composite primary key in RDBMS to uniquely identify a table row.

+5
source share
3 answers

Unfortunately not. The best thing you can do at the moment is to create a property that combines the properties that you want to uniquely identify, and place a limit on it.

+4
source

You can use the array property and create an index for it.

+4
source

Currently, neo4j (v3.0.3) still does not support a single restriction with several properties. The reason for this is as follows: When a unique constraint is created it also creates an index on it and as indexes only allow one property, thus constraints can only be applied on one index.

0
source

Source: https://habr.com/ru/post/1241725/


All Articles