Closed berinhard closed 4 years ago
After keep on researching on how to perform this query, I realized I had to convert ID(node)
to a jsonb
object. In the end, the working query is:
agens=# MATCH (node) WHERE ID(node)::jsonb IN ['4.8741916', '5.1238233', '4.9477445'] RETURN COUNT(*);
count
-------
3
(1 row)
Hi, first of all, thanks for all of your good work developing and maintaining AgensGraph! I'm having a problem and I hope you can help me to understand why it's happening.
I'm trying to run a simle Cypher query to filter my nodes by a set of IDs instead of a single one, but I'm getting the error
ERROR: graph object cannot be jsonb
. I'm using the same Cypher query as described in this Stackoverflow's answer.Here's an example of what I'm executing:
I think the issue happens when I combine the
IN
keyword with theID
function, because when I use it with a node property, it works as expected: