diff --git a/src/firestore/collection/collection.ts b/src/firestore/collection/collection.ts index d76cb35f3..9e77f27a0 100644 --- a/src/firestore/collection/collection.ts +++ b/src/firestore/collection/collection.ts @@ -141,7 +141,8 @@ export class AngularFirestoreCollection { /** * Create a reference to a single document in a collection. */ - doc(path?: string): AngularFirestoreDocument { - return new AngularFirestoreDocument(this.ref.doc(path), this.afs); + doc(path?: string): AngularFirestoreDocument { + // TODO is there a better way to solve this type issue + return new AngularFirestoreDocument(this.ref.doc(path) as any, this.afs); } }