Skip to content

Commit

Permalink
Doc path should be optional
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesdaniels committed May 24, 2019
1 parent 1ca00ca commit c2354f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/firestore/collection/collection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ export class AngularFirestoreCollection<T=DocumentData> {
* Create a reference to a single document in a collection.
* @param path
*/
doc<T>(path: string): AngularFirestoreDocument<T> {
doc<T>(path?: string): AngularFirestoreDocument<T> {
return new AngularFirestoreDocument<T>(this.ref.doc(path), this.afs);
}
}

0 comments on commit c2354f8

Please sign in to comment.