Skip to content

Commit

Permalink
revert collection.ts changes
Browse files Browse the repository at this point in the history
  • Loading branch information
gagik committed Oct 17, 2024
1 parent 27fd15d commit d24305c
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions packages/shell-api/src/collection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ export default class Collection extends ShellApiWithMongoClass {
async aggregate(
pipeline: Document[],
options: Document & { explain: ExplainVerbosityLike }
): Promise<AggregationCursor>;
): Promise<Document>;
async aggregate(...stages: Document[]): Promise<AggregationCursor>;
@returnsPromise
@returnType('AggregationCursor')
Expand All @@ -191,10 +191,7 @@ export default class Collection extends ShellApiWithMongoClass {
this._database._name,
this._name,
pipeline,
{
...(await this._database._baseOptions()),
...aggOptions,
},
{ ...(await this._database._baseOptions()), ...aggOptions },
dbOptions
);
const cursor = new AggregationCursor(this._mongo, providerCursor);
Expand Down

0 comments on commit d24305c

Please sign in to comment.