Controlling memory limit on procedure

Hi,

I am trying to increase control procedure memory usage by following steps from docs: Query modules | Memgraph Docs

match (n)-[e]->(m)
with collect(e) as edges
call super_awesome_module.do_something(edges) MEMORY UNLIMITED YIELD * RETURN *;

but it throws an error:
Client received exception: line 3:37 mismatched input 'MEMORY' expecting {<EOF>, ';'}

What am I doing wrong?

1 Like

Hi @antonio!

Thank you for reporting this issue.
We have updated our documentation with the new memory usage command, which includes the keyword PROCEDURE. Your updated Cypher query should look like this:

MATCH (n)-[e]->(m)
WITH collect(e) AS edges
CALL super_awesome_module.do_something(edges) 
PROCEDURE MEMORY UNLIMITED 
YIELD * RETURN *;