doc
Gets a DocumentReference
instance that refers to the document at the
specified absolute path.
function doc(
firestore: Firestore,
path: string,
...pathSegments: string[],
): DocumentReference<DocumentData, DocumentData>;function doc<AppModelType, DbModelType extends DocumentData>(
reference: CollectionReference<AppModelType, DbModelType>,
path?: string,
...pathSegments: string[],
): DocumentReference<AppModelType, DbModelType>;function doc<AppModelType, DbModelType extends DocumentData>(
reference: DocumentReference<AppModelType, DbModelType>,
path: string,
...pathSegments: string[],
): DocumentReference<DocumentData, DocumentData>;§
doc(firestore: Firestore, path: string, ...pathSegments: string[]): DocumentReference<DocumentData, DocumentData>
[src]Gets a DocumentReference
instance that refers to the document at the
specified absolute path.
§Parameters
§
doc<AppModelType, DbModelType extends DocumentData>(reference: CollectionReference<AppModelType, DbModelType>, path?: string, ...pathSegments: string[]): DocumentReference<AppModelType, DbModelType>
[src]Gets a DocumentReference
instance that refers to a document within
reference
at the specified relative path. If no path is specified, an
automatically-generated unique ID will be used for the returned
DocumentReference
.
§Parameters
§
reference: CollectionReference<AppModelType, DbModelType>
[src]- A reference to a collection.
§Return Type
§
DocumentReference<AppModelType, DbModelType>
[src]The DocumentReference
instance.
§
doc<AppModelType, DbModelType extends DocumentData>(reference: DocumentReference<AppModelType, DbModelType>, path: string, ...pathSegments: string[]): DocumentReference<DocumentData, DocumentData>
[src]Gets a DocumentReference
instance that refers to a document within
reference
at the specified relative path.
§Parameters
§
reference: DocumentReference<AppModelType, DbModelType>
[src]- A reference to a Firestore document.