memgraph / mage

MAGE - Memgraph Advanced Graph Extensions :crystal_ball:
Apache License 2.0
240 stars 23 forks source link

[BUG] - Distance calculator single/multiple should be a function #433

Open antejavor opened 7 months ago

antejavor commented 7 months ago

Describe the bug Distance calculator single and multiple returns just a single result and should be a function since it is much easier to call a pure function that you can reuse in the WITH instead of using CALL and YIELD

gitbuda commented 7 months ago

In general, this is a very common request (provide something both as a function and procedure), I think we should consider that whenever we add a new function or procedure (it's not always possible, but in a lot of cases it is) 🤔