apoc.coll.occurrences
Function
apoc.coll.occurrences(coll [Any], item Any)
- returns the count of the given item in the collection.
Usage examples
The following returns the number of occurrences of the value 9
in a list:
RETURN apoc.coll.occurrences([1,3,5,7,9,9], 9) AS output;
Output |
---|
2 |
Was this page helpful?