You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ cypher-lint -a < scripts/upload_t10_data.cypher<stdin>:2:19: Invalid input 'u': expected '=' or CREATE CONSTRAINT ONCREATE CONSTRAINT uniqueT10 IF NOT EXISTS ON (n:T10) ^<stdin>:5:19: Invalid input 'u': expected '=' or CREATE CONSTRAINT ONCREATE CONSTRAINT uniqueMonth IF NOT EXISTS ON (m:Month) ^ @0 2..33 line_comment // Make sure we have unique nodes @1 34..145 error >>CREATE CONSTRAINT uniqueT10 IF NOT EXISTS ON (n:T10)\n ASSERT (n.date, n.name, n.result, n.m50) IS NODE KEY<< @2 149..175 line_comment // Constraint for Month/Year @3 176..275 error >>CREATE CONSTRAINT uniqueMonth IF NOT EXISTS ON (m:Month)\n ASSERT (m.month, m.year) IS NODE KEY<< @4 280..327 line_comment // Needs apoc.import.file.enabled=true in config
According to the cypher refcard, the following constraints format is acceptable (and working as expected):
// Make sure we have unique nodesCREATECONSTRAINTuniqueT10IFNOTEXISTSON (n:T10)
ASSERT (n.date, n.name, n.result, n.m50) ISNODEKEY;
// Constraint for Month/YearCREATECONSTRAINTuniqueMonthIFNOTEXISTSON (m:Month)
ASSERT (m.month, m.year) ISNODEKEY;
The text was updated successfully, but these errors were encountered:
According to the cypher refcard, the following constraints format is acceptable (and working as expected):
The text was updated successfully, but these errors were encountered: