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