Skip to content

Commit d24305c

Browse files
committed
revert collection.ts changes
1 parent 27fd15d commit d24305c

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

packages/shell-api/src/collection.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)