# MultiAggregationConfig

***

Defines how to aggregate a value across features in a layer with multiple aggregations returned at once.

## Type Parameters

| Type Parameter                                                                                      |
| --------------------------------------------------------------------------------------------------- |
| `T` *extends* [`AggregationMethod`](/js-sdk-api-reference/layers/aggregationmethod.md) \| `"count"` |

## Properties

### methods

> **methods**: `T`\[]

The operations to use on the values from the features in the layer

***

### attribute?

> `optional` **attribute**: `string`

The attribute ID to use for the aggregation when aggregations other than "count" are used.

This can be omitted if the only aggregation is "count", but must be a numeric attribute otherwise.

Use `getLayerSchema` to get the attributes available for a layer.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://developers.felt.com/js-sdk-api-reference/layers/multiaggregationconfig.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
