File tree 2 files changed +6
-2
lines changed
2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -238,7 +238,10 @@ export type { CreateCollectionOptions } from './operations/create_collection';
238
238
export type { DeleteOptions , DeleteResult , DeleteStatement } from './operations/delete' ;
239
239
export type { DistinctOptions } from './operations/distinct' ;
240
240
export type { DropCollectionOptions , DropDatabaseOptions } from './operations/drop' ;
241
- export type { EstimatedDocumentCountOptions } from './operations/estimated_document_count' ;
241
+ export type {
242
+ EstimatedDocumentCountOptions ,
243
+ EstimatedDocumentCountOptionsV1
244
+ } from './operations/estimated_document_count' ;
242
245
export type { EvalOptions } from './operations/eval' ;
243
246
export type { FindOptions } from './operations/find' ;
244
247
export type { Sort , SortDirection } from './sort' ;
Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ import type { Document } from '../bson';
5
5
import type { Server } from '../sdam/server' ;
6
6
import type { Collection } from '../collection' ;
7
7
import type { ClientSession } from '../sessions' ;
8
- import { MongoError } from '../error' ;
9
8
10
9
/**
11
10
* All supported options, including legacy options
@@ -62,7 +61,9 @@ export class EstimatedDocumentCountOperation extends CommandOperation<number> {
62
61
{ $collStats : { count : { } } } ,
63
62
{ $group : { _id : 1 , n : { $sum : '$count' } } }
64
63
] ;
64
+
65
65
cmd = { aggregate : this . collectionName , pipeline, cursor : { } } ;
66
+
66
67
if ( typeof options . maxTimeMS === 'number' ) {
67
68
cmd . maxTimeMS = options . maxTimeMS ;
68
69
}
You can’t perform that action at this time.
0 commit comments