I have a set of nodes with multiple Labels (A, B, C). All nodes have a common property, which is unique across all labels. However, when creating unique constraint it is limited to one label, isn't it?
Documentation says something like:
CREATE CONSTRAINT ON (n:A) ASSERT n.uid IS UNIQUE
But I'd like to do something like
CREATE CONSTRAINT ON (n:A AND n:B AND n:C) ASSERT n.uid IS UNIQUE
or
CREATE CONSTRAINT ON (n) ASSERT n.uid IS UNIQUE
If that is not possible, would it be best, to create a label D, and add it to all nodes with label A, B, and C and then create the constraint for label D?