O'Reilly logo
  • Kate Atkinson thinks this is interesting:

CREATE UNIQUE (product1)-[:BELONGS_TO]->(category1)
CREATE UNIQUE (product2)-[:BELONGS_TO]->(category1)
CREATE UNIQUE (product3)-[:BELONGS_TO]->(category2)
CREATE UNIQUE (product4)-[:BELONGS_TO]->(category3)
CREATE UNIQUE (product5)-[:BELONGS_TO]->(category2)

From

Cover of Beginning Neo4j

Note

None of these work. Saying UNIQUE is deprecated.