Michael
Michael

Reputation: 715

Cypher 2.0 - MERGE operation

Are there any prereqs to use the merge operation? The merge examples from the Neo4j documentation such as:

merge (robert:Critic)
RETURN robert, labels(robert)

return:

An unknown error occurred, was unable to retrieve a result for you.

By the way, the "live" examples from the documentation don't work either:

Query:
merge (robert:Critic) 
return robert, labels(robert)
Error: invalid start of query
"merge (robert:Critic) return robert, labels(robert)"
 ^

Upvotes: 2

Views: 222

Answers (1)

Michael
Michael

Reputation: 715

Okay, that clearly is a bug. Opening a report on github.

The following works fine btw:

start _0 = node(0) with _0
merge (robert:Critic)
RETURN robert, labels(robert)

Upvotes: 4

Related Questions