A reference to a document in a Firestore database.
The document may already exist or can be created by this class.
Parameters
Name
Description
path
Tuple[str, ...]
The components in the document 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 (as well as the base document).
kwargs
dict
The keyword arguments for the constructor. The only supported keyword is client and it must be a Client. It represents the client that created this document reference.
Exceptions
Type
Description
ValueError
if * the path is empty * there are an even number of elements * a collection ID in path is not a string * a document ID in path is not a string
[[["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-07-02 UTC."],[],[]]