collection
Gets a CollectionReference
instance that refers to the collection at
the specified absolute path.
function collection(
firestore: Firestore,
path: string,
...pathSegments: string[],
): CollectionReference<DocumentData, DocumentData>;function collection<AppModelType, DbModelType extends DocumentData>(
reference: CollectionReference<AppModelType, DbModelType>,
path: string,
...pathSegments: string[],
): CollectionReference<DocumentData, DocumentData>;function collection<AppModelType, DbModelType extends DocumentData>(
reference: DocumentReference<AppModelType, DbModelType>,
path: string,
...pathSegments: string[],
): CollectionReference<DocumentData, DocumentData>;§
collection(firestore: Firestore, path: string, ...pathSegments: string[]): CollectionReference<DocumentData, DocumentData>
[src]Gets a CollectionReference
instance that refers to the collection at
the specified absolute path.
§Parameters
§
collection<AppModelType, DbModelType extends DocumentData>(reference: CollectionReference<AppModelType, DbModelType>, path: string, ...pathSegments: string[]): CollectionReference<DocumentData, DocumentData>
[src]Gets a CollectionReference
instance that refers to a subcollection of
reference
at the specified relative path.
§Parameters
§
reference: CollectionReference<AppModelType, DbModelType>
[src]- A reference to a collection.
§
collection<AppModelType, DbModelType extends DocumentData>(reference: DocumentReference<AppModelType, DbModelType>, path: string, ...pathSegments: string[]): CollectionReference<DocumentData, DocumentData>
[src]Gets a CollectionReference
instance that refers to a subcollection of
reference
at the specified relative path.
§Parameters
§
reference: DocumentReference<AppModelType, DbModelType>
[src]- A reference to a Firestore document.