A reference to a collection in a Firestore database.
The collection may already exist or this class can facilitate creation
of documents within the collection.
Parameters
Name
Description
path
Tuple[str, ...]
The components in the collection path. This is a series of strings representing each collection and sub-collection ID, as well as the document IDs for any documents that contain a sub-collection.
kwargs
dict
The keyword arguments for the constructor. The only supported keyword isclientand it must be aClientif provided. It represents the client that created this collection reference.
Exceptions
Type
Description
ValueError
if * thepathis empty * there are an even number of elements * a collection ID inpathis not a string * a document ID inpathis not a string
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-05-07 UTC."],[],[]]