Dokumentacja dla programistów

Nowy obiekt `aggregate`

Aktualizacja 2025-10-23

Ten artykuł zniknął z dokumentacji monday.com 2026-09-22. Zostawiamy go, bo wciąż bywa szukany - ale może opisywać stan sprzed zmiany.

Możesz teraz używać obiektu aggregate, aby za pomocą API pobierać dane z tablic, grupując je i stosując funkcje agregujące.

Sample GraphQL Query
query {
  aggregate(query: {
    from: { type: TABLE, id: 1234567890 },
    group_by: [{ column_id: "task_owner", limit: 10 }],
    limit: 2,
    query: {
      rules: [{
        operator: any_of,
        column_id: "status",
        compare_value: "done_labels"
      }]
    },
    select: [
      {
        type: FUNCTION,
        function: {
          function: SUM,
          params: [{ type: COLUMN, column: { column_id: "task_estimation" } }]
        },
        as: "sum"
      },
      {
        type: COLUMN,
        column: { column_id: "task_owner" },
        as: "task_owner"
      }
    ]
  }) {
    results {
      entries {
        alias
        value {
          ... on AggregateGroupByResult { value_string }
          ... on AggregateBasicAggregationResult { result }
        }
      }
    }
  }
}
Mam problem z tym tematem Źródło: developer.monday.com (strona może już nie istnieć)