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.
CollectionRecursive
Include all the collections's ancestor in the index. Only available for
Datastore Mode databases.
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\u003eThis document provides reference documentation for the \u003ccode\u003eIndex.Types.QueryScope\u003c/code\u003e enum within the Firestore Admin v1 API, with the latest version being 3.12.0.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eIndex.Types.QueryScope\u003c/code\u003e enum defines the scope at which a query is run, as specified in a \u003ccode\u003eStructuredQuery's\u003c/code\u003e \u003ccode\u003efrom\u003c/code\u003e field.\u003c/p\u003e\n"],["\u003cp\u003eThe document outlines the different fields within the \u003ccode\u003eIndex.Types.QueryScope\u003c/code\u003e enum: \u003ccode\u003eCollection\u003c/code\u003e, \u003ccode\u003eCollectionGroup\u003c/code\u003e, \u003ccode\u003eCollectionRecursive\u003c/code\u003e, and \u003ccode\u003eUnspecified\u003c/code\u003e, detailing their individual purposes.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eCollection\u003c/code\u003e field allows queries against a collection that is a child of a specific document, whereas \u003ccode\u003eCollectionGroup\u003c/code\u003e enables queries against all collections with a particular ID.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eCollectionRecursive\u003c/code\u003e allows you to include all of the collections' ancestors in the index, but it is only available for Datastore Mode databases.\u003c/p\u003e\n"]]],[],null,[]]