Stay organized with collections
Save and categorize content based on your preferences.
A QuerySnapshot contains zero or more DocumentSnapshot objects representing the results of a query. The documents can be accessed as an array via the docs property or enumerated using the forEach method. The number of documents can be determined via the empty and size properties.
[[["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 2024-01-19 UTC."],[],[],null,["A `QuerySnapshot` contains zero or more `DocumentSnapshot` objects representing the results of a query. The documents can be accessed as an array via the `docs` property or enumerated using the `forEach` method. The number of documents can be determined via the `empty` and `size` properties.\n\n**Signature:** \n\n export declare class QuerySnapshot\u003cAppModelType = DocumentData, DbModelType extends DocumentData = DocumentData\u003e \n\nProperties\n\nMethods\n\nQuerySnapshot.docs\n\nAn array of all the documents in the `QuerySnapshot`.\n\n**Signature:** \n\n get docs(): Array\u003cQueryDocumentSnapshot\u003cAppModelType, DbModelType\u003e\u003e;\n\nQuerySnapshot.empty\n\nTrue if there are no documents in the `QuerySnapshot`.\n\n**Signature:** \n\n get empty(): boolean;\n\nQuerySnapshot.query\n\nThe query on which you called [getDocs()](./firestore_.md#getdocs_4e56953) in order to get this `QuerySnapshot`.\n\n**Signature:** \n\n readonly query: Query\u003cAppModelType, DbModelType\u003e;\n\nQuerySnapshot.size\n\nThe number of documents in the `QuerySnapshot`.\n\n**Signature:** \n\n get size(): number;\n\nQuerySnapshot.forEach()\n\nEnumerates all of the documents in the `QuerySnapshot`.\n\n**Signature:** \n\n forEach(callback: (result: QueryDocumentSnapshot\u003cAppModelType, DbModelType\u003e) =\u003e void, thisArg?: unknown): void;\n\nParameters\n\n**Returns:**\n\nvoid"]]