We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1ca00ca commit c2354f8Copy full SHA for c2354f8
src/firestore/collection/collection.ts
@@ -154,7 +154,7 @@ export class AngularFirestoreCollection<T=DocumentData> {
154
* Create a reference to a single document in a collection.
155
* @param path
156
*/
157
- doc<T>(path: string): AngularFirestoreDocument<T> {
+ doc<T>(path?: string): AngularFirestoreDocument<T> {
158
return new AngularFirestoreDocument<T>(this.ref.doc(path), this.afs);
159
}
160
0 commit comments