Search code examples
memgraphdb

Support for count(DISTINCT) or any other collect-like operation in Memgraph


I use Memegraph in Dockerized environment. Memgraph version is 2.4.1. I have a need for count(DISTINCT) or some other collect-like operation. But I can't find it in the docs.

Is this supported?


Solution

  • I've just checked the latest available Memgraph (version 2.10). It supports RETURN COUNT(DISTINCT n.prop). Documentation can be found at https://memgraph.com/docs/cypher-manual/clauses/return#10-returning-unique-results.