I'm using nodes as intermediate path elements, but I want to make sure the start/end are unique. How do I create a constraint that requires TWO values to be checked?
I can set individual ones but can't see syntax for a two-part constraint.
neolib.run_query(
"""CREATE CONSTRAINT
uSource
if not exists
ON (m:route) ASSERT m.source IS UNIQUE""")
neolib.run_query(
"""CREATE CONSTRAINT
uTarget
if not exists
ON (m:route) ASSERT m.target IS UNIQUE""")