> ## Documentation Index
> Fetch the complete documentation index at: https://api.buildingswell.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Group and count

> Group records by a field and return counts.

```http theme={null}
POST /deliverable/group-and-count

{ "groupByField": "type" }
```

Group by multiple fields:

```json theme={null}
{ "groupByField": ["computed.projectId", "type"] }
```

For array fields (e.g. tags), use `unnestGroupByField` to count individual values:

```json theme={null}
{ "groupByField": "computed.tags", "unnestGroupByField": true }
```

All standard filter params work here too.
