errors: [
{
query: 'CREATE CONSTRAINT ON (model:Client) ASSERT model.username IS UNIQUE',
params: {},
error: [Neo4jError]
},
...
]
When I execute manually this query neo4j say:
Invalid constraint syntax, ON and ASSERT should not be used. Replace ON with FOR and ASSERT with REQUIRE. (line 1, column 1 (offset: 0))
"CREATE CONSTRAINT ON (model:Client) ASSERT model.username IS UNIQUE"
When i execute:
It produce this error
When I execute manually this query neo4j say:
So i fixed it
Source: