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-06-12 UTC."],[[["This webpage provides documentation for the `AggregationResult` class within the Google Cloud Firestore V1 API, focusing on version 3.5.1."],["`AggregationResult` is a class that represents the result of a single bucket from a Firestore aggregation query, inheriting from `object` and implementing several interfaces like `IMessage`, `IEquatable`, `IDeepCloneable`, and `IBufferMessage`."],["The `AggregateFields` property of the `AggregationResult` class contains a map where the keys represent the aliases assigned to aggregation functions, and the values are the results of those functions."],["The documentation includes details on the constructors of the `AggregationResult` class, which are a default constructor, and another constructor to take in another `AggregationResult`."],["This page contains links to documentation for multiple other versions of the `AggregationResult` class, spanning from 2.3.0 up to the most current 3.10.0."]]],[]]