Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
11-14-2018 04:53 AM
Hi there, is it possible to specify a constraint that applies ONLY when a node has no incoming relationships?
In this case, I use graphs to represent a taxonomy. All nodes in a taxonomy have label Taxon, including the root node. The root node in a taxonomy is only distinguished by the fact that it has no incoming relationships. I want the property name
to be unique for these root nodes. But I don't want that uniqueness constraint to apply to nodes that are further down the taxonomy tree.
11-14-2018 12:31 PM
If you add a :Root label to these nodes, then you can create a unique constraint on :Root(name).
All the sessions of the conference are now available online