我对Neo4j / Cypher不太熟悉。我一直在研究这个错误可能来自哪里,但我很难过。请注意,这已在另一台计算机上运行并且已成功,但不在我的计算机上。
这是我的输入(索引已经存在):
WITH
range(2016, 2016) AS YEARS, range(6,6) AS MONTHS, range(7,10) as Days,
range(0,23) as Hours, range(0,59) as Minutes, range(0,59) as Seconds
FOREACH(year IN YEARS |
CREATE (y:Year {yearid: year})
FOREACH(month IN MONTHS |
CREATE (m:Month {monthid: month})
MERGE (y)-[:HAS_MONTH]->(m)
FOREACH(day IN Days |
CREATE (d:Day {dayid: day})
MERGE (m)-[:HAS_DAY]->(d)
FOREACH(hour IN Hours |
CREATE (h:Hour {hourid: hour})
MERGE (d)-[:HAS_HOUR]->(h)
FOREACH(minute IN Minutes |
CREATE (mm:Minute {minuteid: minute})
MERGE (h)-[:HAS_MINUTE]->(mm)
FOREACH(second IN Seconds |
CREATE (ss:Second {secondid: second})
MERGE (mm)-[:HAS_SECOND]->(ss)))))));