@@ -2213,6 +2213,7 @@ firebase.firestore._getDocumentReference = (docRef?: JDocumentReference): firest
22132213 id : docRef . getId ( ) ,
22142214 parent : firebase . firestore . _getCollectionReference ( docRef . getParent ( ) ) ,
22152215 path : docRef . getPath ( ) ,
2216+ firestore : firebase . firestore ,
22162217 collection : cp => firebase . firestore . collection ( `${ collectionPath } /${ docRef . getId ( ) } /${ cp } ` ) ,
22172218 set : ( data : any , options ?: firestore . SetOptions ) => firebase . firestore . set ( collectionPath , docRef . getId ( ) , data , options ) ,
22182219 get : ( options ?: firestore . GetOptions ) => firebase . firestore . getDocument ( collectionPath , docRef . getId ( ) , options ) ,
@@ -2233,6 +2234,7 @@ firebase.firestore._getCollectionReference = (colRef?: JCollectionReference): fi
22332234 return {
22342235 id : colRef . getId ( ) ,
22352236 parent : firebase . firestore . _getDocumentReference ( colRef . getParent ( ) ) ,
2237+ firestore : firebase . firestore ,
22362238 doc : ( documentPath ?: string ) => firebase . firestore . doc ( collectionPath , documentPath ) ,
22372239 add : document => firebase . firestore . add ( collectionPath , document ) ,
22382240 get : ( options ?: firestore . GetOptions ) => firebase . firestore . get ( collectionPath , options ) ,
@@ -2530,6 +2532,7 @@ firebase.firestore._getQuery = (collectionPath: string, query: com.google.fireba
25302532 startAt : ( snapshot : DocumentSnapshot ) => firebase . firestore . startAt ( collectionPath , snapshot , query ) ,
25312533 endAt : ( snapshot : DocumentSnapshot ) => firebase . firestore . endAt ( collectionPath , snapshot , query ) ,
25322534 endBefore : ( snapshot : DocumentSnapshot ) => firebase . firestore . endBefore ( collectionPath , snapshot , query ) ,
2535+ firestore : firebase . firestore
25332536 } ;
25342537} ;
25352538
0 commit comments