Closed matea16 closed 10 months ago
So this was a high-level discussion that after the write CALL procedure you can't do any updates. For now, what is possible to do is implement everything inside the procedure.
Hello @matea16! As Antonio said, the behavior you described here is expected from Memgraph and thus I’m closing this issue. Nonetheless, you can get around this issue by implementing a new procedure: adding a few lines of code to refactor.clone_subgraph
that set the clone
property of nodes should do the trick.
Two reported instances of not being able to use updating clauses with procedures being a blocker for the user. One related to the previously opened issue about
merge.relationship
and one related to a recent Discord thread whereSET
clause can not be used afterrefactor.clone_subgraph
To replicate, first create any two connected nodes and then run a following query:
it throws the following error:
Update clause can't be put after calling a writeable procedure, only RETURN clause can be put after.