Closed afidegnum closed 3 years ago
Use this.
MATCH (p:Person) WHERE id(n) = 3.14 return p;
Thanks a lot, what does n
stand for ?
it's rather p
not n
MATCH (p:Person) WHERE id(p) = 3.14 return p;
Thanks a lot
Another little question again, what will be the query if i want to match 2 edges by id?
MATCH (p:person {name: 'John'}),(k:person{name: 'Daniel'}) CREATE (p)-[:knows]->(k)
so, instead of matching by name, i want to match by ID
use like this.
MATCH (p:person),(k:person)
WHERE id(p) = 1 AND id(k) = 2
CREATE (p)-[:knows]->(k)
thanks
None of these query worked.
which one works?