I am trying to run following cypher via Neo4j browser
CREATE CONSTRAINT test_id IF NOT EXISTS ON (n:Test) ASSERT n.id IS UNIQUE
it is giving following error
Invalid input 'I': expected whitespace, comment or ON (line 1, column 27 (offset: 26))
"CREATE CONSTRAINT test_id IF NOT EXISTS ON (n:Test) ASSERT n.id IS UNIQUE"
From reading that documentation it does seem like most constraints are limited to enterprise edition but not this "unique node property constraint". So this query should work in community edition?
Also, even if it was limited to enterprise edition, I am currently testing using neo4j desktop which afaik is equivalent to enterprise edition and should therefore work even then.