Indexes with a collection query scope specified allow queries
against a collection that is the child of a specific document, specified
at query time, and that has the collection id specified by the index.
CollectionGroup
Indexes with a collection group query scope specified allow queries
against all collections that has the collection id specified by the
index.
Unspecified
The query scope is unspecified. Not a valid option.
[[["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-08-07 UTC."],[[["\u003cp\u003eThe content details the different versions of \u003ccode\u003eQueryScope\u003c/code\u003e within the \u003ccode\u003eGoogle.Cloud.Firestore.Admin.V1\u003c/code\u003e namespace, with version 3.12.0 being the latest.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eQueryScope\u003c/code\u003e is an enumeration that defines the scope of a query, used within a \u003ccode\u003eStructuredQuery\u003c/code\u003e's \u003ccode\u003efrom\u003c/code\u003e field.\u003c/p\u003e\n"],["\u003cp\u003eThere are three defined fields for \u003ccode\u003eQueryScope\u003c/code\u003e: \u003ccode\u003eCollection\u003c/code\u003e, \u003ccode\u003eCollectionGroup\u003c/code\u003e, and \u003ccode\u003eUnspecified\u003c/code\u003e, each with distinct query capabilities.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eCollection\u003c/code\u003e field allows queries against a child collection of a specific document, while \u003ccode\u003eCollectionGroup\u003c/code\u003e allows queries across all collections with a matching ID.\u003c/p\u003e\n"],["\u003cp\u003eThe Unspecified field is not a valid query option.\u003c/p\u003e\n"]]],[],null,[]]