Skip to content

Commit

Permalink
fix(firestore): default sub-collections to DocumentData (#1662)
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesdaniels authored and davideast committed May 17, 2018
1 parent 5dcc354 commit 97c8656
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/firestore/document/document.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export class AngularFirestoreDocument<T=DocumentData> {
* @param path
* @param queryFn
*/
collection<R>(path: string, queryFn?: QueryFn): AngularFirestoreCollection<R> {
collection<R=DocumentData>(path: string, queryFn?: QueryFn): AngularFirestoreCollection<R> {
const collectionRef = this.ref.collection(path);
const { ref, query } = associateQuery(collectionRef, queryFn);
return new AngularFirestoreCollection<R>(ref, query, this.afs);
Expand Down

0 comments on commit 97c8656

Please sign in to comment.