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"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis webpage provides documentation for the \u003ccode\u003eAggregationResult\u003c/code\u003e class within the Google Cloud Firestore v1 API, specifically for version 3.6.0.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eAggregationResult\u003c/code\u003e represents the outcome of a single bucket from a Firestore aggregation query, containing the results of aggregation functions.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eAggregateFields\u003c/code\u003e property within the \u003ccode\u003eAggregationResult\u003c/code\u003e class is a map containing the results of aggregation functions, keyed by their assigned alias.\u003c/p\u003e\n"],["\u003cp\u003eThe webpage details the inheritance, implemented interfaces, constructors, and properties of the \u003ccode\u003eAggregationResult\u003c/code\u003e class.\u003c/p\u003e\n"],["\u003cp\u003eThe documentation includes links to various versions of the \u003ccode\u003eAggregationResult\u003c/code\u003e class ranging from version 2.3.0 up to the latest version, 3.10.0.\u003c/p\u003e\n"]]],[],null,[]]