How can I filter this this list so as to keep only items over 3? [1,2,3,4,5]
Memgraph does not seem to have a FILTER clause nor a filter function on the collections module. I'm unable to figure out how the extract or the reduce functions can help.
Can anybody help me filter out my frustration ;) ?
I got this to work, but is there a better way?
with [1,2,3,4,5] as list
unwind list as l
with l
where l>3
return collect(l)
I wrote a small custom procedure in Python, directly in Memgraph Lab which might help:
Here's how to call it:
And here are the instructions on how to create it in Memgraph Lab.