Reference documentation and code samples for the Firestore v1 API class AggregationResult.
The result of a single bucket from a Firestore aggregation query.
The keys of aggregate_fields are the same for all results in an aggregation
query, unlike document queries which can have different fields present for
each result.
The result of the aggregation functions, ex: COUNT(*) AS total_docs.
The key is the
[alias][google.firestore.v1.StructuredAggregationQuery.Aggregation.alias]
assigned to the aggregation function on input and the size of this map
equals the number of aggregation functions in the query.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-21 UTC."],[[["This page provides reference documentation for the `AggregationResult` class within the Firestore v1 API, specifically version 3.8.0, as well as links to other versions."],["`AggregationResult` is used to represent the output of a single bucket from a Firestore aggregation query, where the keys of `aggregate_fields` remain consistent across all results."],["The class implements multiple interfaces, including `IMessage`, `IEquatable`, `IDeepCloneable`, and `IBufferMessage`, and inherits from the base `object` class."],["The `AggregateFields` property, a `MapField` of strings and `Value` types, holds the results of the aggregation functions, with keys matching the aliases defined in the query."],["Constructors are included for both a default instance, `AggregationResult()`, and one that copies properties from another `AggregationResult` instance, `AggregationResult(AggregationResult other)`."]]],[]]