[[["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 2023-05-09 UTC."],[],[],null,["# Firebase.Firestore.AggregateQuery Class Reference\n\nFirebase.Firestore.AggregateQuery\n=================================\n\nA query that calculates aggregations over an underlying query.\n\nSummary\n-------\n\n| ### Public attributes ||\n|------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [Query](#class_firebase_1_1_firestore_1_1_aggregate_query_1af02703a6994c78a0d2585aec079249c7)` =\u003e new Query(_proxy.query(), _firestore)` | [Query](/docs/reference/unity/class/firebase/firestore/query#class_firebase_1_1_firestore_1_1_query) The query of aggregations that will be calculated. |\n\n| ### Public functions ||\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [Equals](#class_firebase_1_1_firestore_1_1_aggregate_query_1aadf02c69ccc2536b32e2f01424a4c21a)`(object obj)` | `override bool` |\n| [Equals](#class_firebase_1_1_firestore_1_1_aggregate_query_1a5f46c3a976e753aacf97c0e882cdef64)`(`[AggregateQuery](/docs/reference/unity/class/firebase/firestore/aggregate-query#class_firebase_1_1_firestore_1_1_aggregate_query)` other)` | `bool` Compares this aggregate query with another for equality. |\n| [GetHashCode](#class_firebase_1_1_firestore_1_1_aggregate_query_1afc85b700480e5983d656a468b3227507)`()` | `override int` |\n| [GetSnapshotAsync](#class_firebase_1_1_firestore_1_1_aggregate_query_1a997ce2841fd11585f1424fbde7884d05)`(`[AggregateSource](/docs/reference/unity/namespace/firebase/firestore#namespace_firebase_1_1_firestore_1a026b0f28c2b3d36b66f1a3fbc6cb8646)` source)` | `Task\u003c `[AggregateQuerySnapshot](/docs/reference/unity/class/firebase/firestore/aggregate-query-snapshot#class_firebase_1_1_firestore_1_1_aggregate_query_snapshot)` \u003e` Asynchronously executes the query. |\n\nPublic attributes\n-----------------\n\n### Query\n\n```c#\nQuery Query =\u003e new Query(_proxy.query(), _firestore)\n``` \nThe query of aggregations that will be calculated.\n\nPublic functions\n----------------\n\n### Equals\n\n```c#\noverride bool Equals(\n object obj\n)\n``` \n\n### Equals\n\n```c#\nbool Equals(\n AggregateQuery other\n)\n``` \nCompares this aggregate query with another for equality.\n\n\u003cbr /\u003e\n\n| Details ||\n|-------------|-------------------------------------------------------------------------------------------------------------------------|\n| Parameters | |---------|-----------------------------------------------| | `other` | The aggregate query to compare this one with. | |\n| **Returns** | `true` if this aggregate query is equal to *other* ; `false` otherwise. |\n\n### GetHashCode\n\n```c#\noverride int GetHashCode()\n``` \n\n### GetSnapshotAsync\n\n```c#\nTask\u003c AggregateQuerySnapshot \u003e GetSnapshotAsync(\n AggregateSource source\n)\n``` \nAsynchronously executes the query.\n\n\u003cbr /\u003e\n\n| Details ||\n|-------------|-----------------------------------------------------------------------------------------------------------------------------------------------|\n| Parameters | |----------|---------------------------------------------------------| | `source` | The source from which to acquire the aggregate results. | |\n| **Returns** | The results of the query. |"]]