Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
10-21-2020 10:06 AM
I have this relationship
Node1 ---- HAS ----> Node2
I want to make sure that the "name" property in Node2 is unique within it's parent node - Node1.
Is it possible to enforce that using Neo4J-OGM?
Or do I have to make a separate get call before calling save?
Thank you.
Solved! Go to Solution.
10-22-2020 06:52 AM
No, this is not possible within Neo4j-OGM. But it is also not possible to do this in Neo4j.
You would have to enforce the rule by calling a query upfront the persistence to know about the potential existence of another node with the same name in the sub-group.
10-22-2020 06:52 AM
No, this is not possible within Neo4j-OGM. But it is also not possible to do this in Neo4j.
You would have to enforce the rule by calling a query upfront the persistence to know about the potential existence of another node with the same name in the sub-group.
All the sessions of the conference are now available online