The constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend theAggregateQuerySnapshotclass.
Returns the results of the aggregations performed over the underlying query.
The keys of the returned object will be the same as those of theAggregateSpecobject specified to the aggregation method, and the values will be the corresponding aggregation result.
Compares this object with the given object for equality.
TwoAggregateQuerySnapshotinstances are considered "equal" if they have the same data and their underlying queries compare "equal" usingAggregateQuery.isEqual().
[[["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-09-04 UTC."],[],[],null,["# Class AggregateQuerySnapshot (7.11.0)\n\nVersion latestkeyboard_arrow_down\n\n- [7.11.0 (latest)](/nodejs/docs/reference/firestore/latest/firestore/aggregatequerysnapshot)\n- [7.9.0](/nodejs/docs/reference/firestore/7.9.0/firestore/aggregatequerysnapshot)\n- [7.7.0](/nodejs/docs/reference/firestore/7.7.0/firestore/aggregatequerysnapshot)\n- [7.6.0](/nodejs/docs/reference/firestore/7.6.0/firestore/aggregatequerysnapshot)\n- [7.5.0](/nodejs/docs/reference/firestore/7.5.0/firestore/aggregatequerysnapshot)\n- [7.4.0](/nodejs/docs/reference/firestore/7.4.0/firestore/aggregatequerysnapshot)\n- [7.3.1](/nodejs/docs/reference/firestore/7.3.1/firestore/aggregatequerysnapshot)\n- [7.2.0](/nodejs/docs/reference/firestore/7.2.0/firestore/aggregatequerysnapshot)\n- [7.1.0](/nodejs/docs/reference/firestore/7.1.0/firestore/aggregatequerysnapshot)\n- [6.4.1](/nodejs/docs/reference/firestore/6.4.1/firestore/aggregatequerysnapshot)\n- [6.3.0](/nodejs/docs/reference/firestore/6.3.0/firestore/aggregatequerysnapshot)\n- [6.0.0](/nodejs/docs/reference/firestore/6.0.0/firestore/aggregatequerysnapshot)\n- [5.0.2](/nodejs/docs/reference/firestore/5.0.2/firestore/aggregatequerysnapshot)\n- [4.15.1](/nodejs/docs/reference/firestore/4.15.1/firestore/aggregatequerysnapshot)\n- [4.14.2](/nodejs/docs/reference/firestore/4.14.2/firestore/aggregatequerysnapshot)\n- [4.9.8](/nodejs/docs/reference/firestore/4.9.8/firestore/aggregatequerysnapshot) \nThe results of executing an aggregation query.\n\nPackage\n-------\n\n[@google-cloud/firestore](../overview.html)\n\nRemarks\n-------\n\nThe constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend the `AggregateQuerySnapshot` class.\n\nProperties\n----------\n\n### query\n\n get query(): AggregateQuery\u003cAggregateSpecType, AppModelType, DbModelType\u003e;\n\nThe query that was executed to produce this result.\n\n### readTime\n\n get readTime(): Timestamp;\n\nThe time this snapshot was read.\n\nMethods\n-------\n\n### data()\n\n data(): firestore.AggregateSpecData\u003cAggregateSpecType\u003e;\n\nReturns the results of the aggregations performed over the underlying query.\n\nThe keys of the returned object will be the same as those of the `AggregateSpec` object specified to the aggregation method, and the values will be the corresponding aggregation result.\n\n### isEqual(other)\n\n isEqual(other: firestore.AggregateQuerySnapshot\u003cAggregateSpecType, AppModelType, DbModelType\u003e): boolean;\n\nCompares this object with the given object for equality.\n\nTwo `AggregateQuerySnapshot` instances are considered \"equal\" if they have the same data and their underlying queries compare \"equal\" using `AggregateQuery.isEqual()`."]]