Collection macros
Discover the available macros to work with collections in CQL.
Looking for something specific?
Use the search bar at the top of the page or press / to quickly search through the documentation.
Use the summary below to quickly jump to a specific topic:
| Page | Description |
|---|---|
| Count | Learn how to count items in a collection. |
| Minimum | Learn how to find the smallest number in a collection. |
| Maximum | Learn how to find the largest number in a collection. |
| Sum | Learn how to calculate the sum of a collection of numbers. |
| Average | Learn how to calculate the average of a collection of numbers. |
| First element | Learn how to get the first element of a collection. |
| Last element | Learn how to get the last element of a collection. |
| Keys | Learn how to get the keys of a collection. |
| Sublist | Learn how to select a range of elements from a collection. |