diff --git a/src/firestore/collection/collection.ts b/src/firestore/collection/collection.ts index c1d6f3f0a..87730dfc2 100644 --- a/src/firestore/collection/collection.ts +++ b/src/firestore/collection/collection.ts @@ -154,7 +154,7 @@ export class AngularFirestoreCollection { * Create a reference to a single document in a collection. * @param path */ - doc(path: string): AngularFirestoreDocument { + doc(path?: string): AngularFirestoreDocument { return new AngularFirestoreDocument(this.ref.doc(path), this.afs); } }