Neo4j Cypher, START n=node(id) over MATCH id(n)=id

Sovos picture Sovos · Feb 8, 2014 · Viewed 12.4k times · Source

I was wondering how

WHERE id(n) = id

compares to

START n = node(id)

as most of the time I do not select nodes by id (at least in number of code appearances) and therefore like to do it always in the match

Answer

Stefan Armbruster picture Stefan Armbruster · Feb 9, 2014

The two statements are identical. START is the syntax to be used in Neo4j 1.x. From Neo4j 2.0 the MATCH variant should be preferred, maybe START will get deprecated at some future release.