apoc.coll.occurrences
Function APOC Core
apoc.coll.occurrences(coll, item) - 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?