@@ -124,15 +124,19 @@ export class Pipeline<AppModelType = DocumentData>
124
124
/**
125
125
* @internal
126
126
* @private
127
- * @param liteDb
127
+ * @param _db
128
128
* @param userDataReader
129
129
* @param userDataWriter
130
130
* @param documentReferenceFactory
131
131
* @param stages
132
132
* @param converter
133
133
*/
134
134
constructor (
135
- private liteDb : Firestore ,
135
+ /**
136
+ * @internal
137
+ * @private
138
+ */
139
+ public _db : Firestore ,
136
140
private userDataReader : UserDataReader ,
137
141
/**
138
142
* @internal
@@ -184,7 +188,7 @@ export class Pipeline<AppModelType = DocumentData>
184
188
)
185
189
) ;
186
190
return new Pipeline (
187
- this . liteDb ,
191
+ this . _db ,
188
192
this . userDataReader ,
189
193
this . userDataWriter ,
190
194
this . documentReferenceFactory ,
@@ -230,7 +234,7 @@ export class Pipeline<AppModelType = DocumentData>
230
234
projections = this . readUserData ( 'select' , projections ) ;
231
235
copy . push ( new Select ( projections ) ) ;
232
236
return new Pipeline (
233
- this . liteDb ,
237
+ this . _db ,
234
238
this . userDataReader ,
235
239
this . userDataWriter ,
236
240
this . documentReferenceFactory ,
@@ -322,7 +326,7 @@ export class Pipeline<AppModelType = DocumentData>
322
326
this . readUserData ( 'where' , condition ) ;
323
327
copy . push ( new Where ( condition ) ) ;
324
328
return new Pipeline (
325
- this . liteDb ,
329
+ this . _db ,
326
330
this . userDataReader ,
327
331
this . userDataWriter ,
328
332
this . documentReferenceFactory ,
@@ -355,7 +359,7 @@ export class Pipeline<AppModelType = DocumentData>
355
359
const copy = this . stages . map ( s => s ) ;
356
360
copy . push ( new Offset ( offset ) ) ;
357
361
return new Pipeline (
358
- this . liteDb ,
362
+ this . _db ,
359
363
this . userDataReader ,
360
364
this . userDataWriter ,
361
365
this . documentReferenceFactory ,
@@ -393,7 +397,7 @@ export class Pipeline<AppModelType = DocumentData>
393
397
const copy = this . stages . map ( s => s ) ;
394
398
copy . push ( new Limit ( limit ) ) ;
395
399
return new Pipeline (
396
- this . liteDb ,
400
+ this . _db ,
397
401
this . userDataReader ,
398
402
this . userDataWriter ,
399
403
this . documentReferenceFactory ,
@@ -438,7 +442,7 @@ export class Pipeline<AppModelType = DocumentData>
438
442
)
439
443
) ;
440
444
return new Pipeline (
441
- this . liteDb ,
445
+ this . _db ,
442
446
this . userDataReader ,
443
447
this . userDataWriter ,
444
448
this . documentReferenceFactory ,
@@ -551,7 +555,7 @@ export class Pipeline<AppModelType = DocumentData>
551
555
) ;
552
556
}
553
557
return new Pipeline (
554
- this . liteDb ,
558
+ this . _db ,
555
559
this . userDataReader ,
556
560
this . userDataWriter ,
557
561
this . documentReferenceFactory ,
@@ -579,7 +583,7 @@ export class Pipeline<AppModelType = DocumentData>
579
583
)
580
584
) ;
581
585
return new Pipeline (
582
- this . liteDb ,
586
+ this . _db ,
583
587
this . userDataReader ,
584
588
this . userDataWriter ,
585
589
this . documentReferenceFactory ,
@@ -640,7 +644,7 @@ export class Pipeline<AppModelType = DocumentData>
640
644
}
641
645
642
646
return new Pipeline (
643
- this . liteDb ,
647
+ this . _db ,
644
648
this . userDataReader ,
645
649
this . userDataWriter ,
646
650
this . documentReferenceFactory ,
@@ -678,7 +682,7 @@ export class Pipeline<AppModelType = DocumentData>
678
682
} ) ;
679
683
copy . push ( new GenericStage ( name , params ) ) ;
680
684
return new Pipeline (
681
- this . liteDb ,
685
+ this . _db ,
682
686
this . userDataReader ,
683
687
this . userDataWriter ,
684
688
this . documentReferenceFactory ,
@@ -785,7 +789,7 @@ export class Pipeline<AppModelType = DocumentData>
785
789
* @return A Promise representing the asynchronous pipeline execution.
786
790
*/
787
791
execute ( ) : Promise < Array < PipelineResult < AppModelType > > > {
788
- const datastore = getDatastore ( this . liteDb ) ;
792
+ const datastore = getDatastore ( this . _db ) ;
789
793
return invokeExecutePipeline ( datastore , this ) . then ( result => {
790
794
const docs = result
791
795
// Currently ignore any response from ExecutePipeline that does
0 commit comments