[[["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\nAggregateQuerySnapshot\n======================\n\n class AggregateQuerySnapshot : NSObject, @unchecked Sendable\n\nThe results of executing an [AggregateQuery](../Classes/AggregateQuery.html).\n- `\n ``\n ``\n `\n\n ### [query](#/c:objc(cs)FIRAggregateQuerySnapshot(py)query)\n\n `\n ` \n The query that was executed to produce this result. \n\n #### Declaration\n\n Swift \n\n var query: FIRAggregateQuery { get }\n\n- `\n ``\n ``\n `\n\n ### [count](#/c:objc(cs)FIRAggregateQuerySnapshot(py)count)\n\n `\n ` \n The number of documents in the result set of the underlying query. \n\n #### Declaration\n\n Swift \n\n var count: NSNumber { get }\n\n- `\n ``\n ``\n `\n\n ### [get(_:)](#/c:objc(cs)FIRAggregateQuerySnapshot(im)valueForAggregateField:)\n\n `\n ` \n Gets the aggregate result for the specified aggregate field without loss of precision. No\n coercion of data types or values is performed.\n\n See the [AggregateField](../Classes/AggregateField.html) class for the expected aggregate result values and types. Numeric\n aggregate results will be boxed in an `NSNumber`. \n Warning\n Throws an `InvalidArgument` exception if the aggregate field was not requested in the [AggregateQuery](../Classes/AggregateQuery.html). \n See\n [AggregateField](../Classes/AggregateField.html) \n\n #### Declaration\n\n Swift \n\n func get(_ aggregateField: FIRAggregateField) -\u003e Any\n\n #### Parameters\n\n |------------------------|------------------------------------------------------------------------------------------------------------------|\n | ` `*aggregateField*` ` | An instance of [AggregateField](../Classes/AggregateField.html) that specifies which aggregate result to return. |\n\n #### Return Value\n\n Returns the aggregate result from the server without loss of precision."]]