[[["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-03-11 UTC."],[],[],null,["# FirebaseFirestore Framework Reference\n\nFIRAggregateQuery\n=================\n\n\n @interface FIRAggregateQuery : NSObject\n\nA query that calculates aggregations over an underlying query.\n- `\n ``\n ``\n `\n\n ### [query](#/c:objc(cs)FIRAggregateQuery(py)query)\n\n `\n ` \n The query whose aggregations will be calculated by this object. \n\n #### Declaration\n\n Objective-C \n\n @property (nonatomic, readonly) ../Classes/FIRQuery.html *_Nonnull query;\n\n- `\n ``\n ``\n `\n\n ### [-aggregationWithSource:completion:](#/c:objc(cs)FIRAggregateQuery(im)aggregationWithSource:completion:)\n\n `\n ` \n Executes this query. \n\n #### Declaration\n\n Objective-C \n\n - (void)aggregationWithSource:(../Enums/FIRAggregateSource.html)source\n completion:\n (nonnull void (^)(../Classes/FIRAggregateQuerySnapshot.html *_Nullable,\n NSError *_Nullable))completion;\n\n #### Parameters\n\n |--------------------|---------------------------------------------------------------------------------------------------------------------|\n | ` `*source*` ` | The source from which to acquire the aggregate results. |\n | ` `*completion*` ` | a block to execute once the results have been successfully read. snapshot will be `nil` only if error is `non-nil`. |"]]