19

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

Sovos
  • 3,330
  • 7
  • 25
  • 36

2 Answers2

25

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.

Stefan Armbruster
  • 39,465
  • 6
  • 87
  • 97
-1

MATCH (a:NodeName) where ID(a)= {id} return ID(a), a.name ...////pass id //this is find by node id

Armen Arzumanyan
  • 1,939
  • 3
  • 30
  • 56