serverAggregates Boolean (default: false)

If set to true, the data source will leave the aggregate calculation to the remote service. By default, the data source calculates aggregates client-side.

Configure schema.aggregates if you set serverAggregates to true.

For more information and tips about client and server data operations, refer to the introductory article on the DataSource.

Example - enable server aggregates

var dataSource = new{
  transport: {
    /* transport configuration */
  serverAggregates: true,
  aggregate: [
    { field: "age", aggregate: "sum" }
  schema: {
    aggregates: "aggregates" // aggregate results are returned in the "aggregates" field of the response
In this article