Neo4j : best alternative to storing nested properties? Neo4j : best alternative to storing nested properties? json json

Neo4j : best alternative to storing nested properties?


You own analysis is basically correct. I would go with number 4.

Here is more about why number 2 is not a good idea. Logically: the location of an item belongs in that item's node, not in a particular relationship to it. Practically: if the object changed ownership you should not have to copy its location to a new relationship, and querying for an item's location should be as quick and simple as just getting its node.