Cypher - Where clause on internal id #3448
-
Hi, Something like:
? [Edit] Of course, i could do:
But that seems kind of horrible, and possibly slow. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @fedehann, normally we don't wanna expose internal id for external querying. But you can query if with
where
Yeah it will be slightly slower. But casting can be done fairly quick and will hardly become the bottleneck of a query |
Beta Was this translation helpful? Give feedback.
Hi @fedehann, normally we don't wanna expose internal id for external querying.
But you can query if with
where
label(n)
returns label name with STRING type andoffset(id(n))
returns offset with INT64 type.Yeah it will be slightly slower. But casting can be done fairly quick and will hardly become the bottleneck of a query