<!-- source: https://secondlayer.tools/docs/api-reference#subgraph-aggregates-object -->

## The Subgraph aggregates object

Only the aggregates you asked for are present. Sums, minimums and maximums are strings so large values stay exact.

| Field | Type | Description |
| --- | --- | --- |
| `count` | integer | Rows matching the filters. Present with `_count`, or when no other aggregate was asked for. |
| `countDistinct` | object | Distinct values per `_countDistinct` column. |
| `sum` | object | Sum per `_sum` column. `"0"` over no rows. |
| `min` | object | Minimum per `_min` column. `null` over no rows. |
| `max` | object | Maximum per `_max` column. `null` over no rows. |

```json
{
  "count": 3,
  "countDistinct": {
    "sender": 3
  },
  "sum": {
    "amount": "42000"
  },
  "max": {
    "amount": "14000"
  }
}
```
