Skip to content

Commit c2354f8

Browse files
committed
Doc path should be optional
1 parent 1ca00ca commit c2354f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/firestore/collection/collection.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ export class AngularFirestoreCollection<T=DocumentData> {
154154
* Create a reference to a single document in a collection.
155155
* @param path
156156
*/
157-
doc<T>(path: string): AngularFirestoreDocument<T> {
157+
doc<T>(path?: string): AngularFirestoreDocument<T> {
158158
return new AngularFirestoreDocument<T>(this.ref.doc(path), this.afs);
159159
}
160160
}

0 commit comments

Comments
 (0)