Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Multiple properties of node to identify node Uniquely

Tags:

neo4j

Can we have multiple properties of a node to identify it uniquely in neo4j graph database?

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

like image 557
RCS Avatar asked Jan 28 '16 14:01

RCS


2 Answers

Unfortunately not. The best that you can do at the moment is to create a property which concatenates the properties that you want to uniquely identify and put a constraint on that.

like image 138
Brian Underwood Avatar answered Sep 30 '22 20:09

Brian Underwood


You can use an array property and create index on that.

like image 34
František Hartman Avatar answered Sep 30 '22 22:09

František Hartman