apoc.coll.frequenciesAsMap
Function
apoc.coll.frequenciesAsMap(coll [Any])
- returns a map of frequencies of the items in the collection, keyed by item
and count
.
Usage examples
The following returns a map containing each item and their frequency in a collection:
RETURN apoc.coll.frequenciesAsMap([1,3,5,7,9,9]) AS output;
Output |
---|
|
Was this page helpful?