Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
12-14-2019 12:01 PM
How to create a unique id for set of nodes. I know there is a option for uuid, but that is specific to nodes, but I'd prefer to have an id for collection of nodes.
For example:
Solved! Go to Solution.
12-15-2019 03:00 PM
Instead of two attributes for Mark
I'd use two relationships to a Family
type of node. This Family node become the common entity linking family members together. In Mark's case he's a member of two families. You can generate UUID for the family node to keep them unique from the other families in your database.
12-14-2019 02:08 PM
There are couple of ways to do.
Create 'Creators' node and 'Inventors' node. John and others go under 'Creators' as employees and Annie and others go under 'Inventors'
In the employee node add department as a property and insert the appropriate department name.
12-14-2019 09:21 PM
But what if I have multiple creators department.
A better example could be what if there is two families with 4 people each and all have appropriately same name as the other.
Here I would like to have a unique difference between families (not by ancestors, theoretically that could also be same to an extent)
12-14-2019 09:39 PM
You're going to have to find a way to distinguish between the two groups. Forget the database for a second, on paper, given the information, how do you manually keep track of the two groups? Is there something else about them? Yes you can eventually assign a surrogate id, but you know best on how to distinguish them.
12-15-2019 01:16 AM
Ok. This is my take. For mark, he will have two properties "FAMILY_ID" share with his predecessors and wife. "PART_OF" with his father and mother.
12-15-2019 03:00 PM
Instead of two attributes for Mark
I'd use two relationships to a Family
type of node. This Family node become the common entity linking family members together. In Mark's case he's a member of two families. You can generate UUID for the family node to keep them unique from the other families in your database.
12-15-2019 05:56 PM
Less attribute, more relationship.it. Thank you both @ameyasoft and @mike.r.black
All the sessions of the conference are now available online