File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -164,7 +164,7 @@ export default class Collection extends ShellApiWithMongoClass {
164164 async aggregate (
165165 pipeline : Document [ ] ,
166166 options : Document & { explain : ExplainVerbosityLike }
167- ) : Promise < AggregationCursor > ;
167+ ) : Promise < Document > ;
168168 async aggregate ( ...stages : Document [ ] ) : Promise < AggregationCursor > ;
169169 @returnsPromise
170170 @returnType ( 'AggregationCursor' )
@@ -191,10 +191,7 @@ export default class Collection extends ShellApiWithMongoClass {
191191 this . _database . _name ,
192192 this . _name ,
193193 pipeline ,
194- {
195- ...( await this . _database . _baseOptions ( ) ) ,
196- ...aggOptions ,
197- } ,
194+ { ...( await this . _database . _baseOptions ( ) ) , ...aggOptions } ,
198195 dbOptions
199196 ) ;
200197 const cursor = new AggregationCursor ( this . _mongo , providerCursor ) ;
You can’t perform that action at this time.
0 commit comments