Skip to content

Commit f896fbd

Browse files
committed
remove array check
1 parent bf52c7f commit f896fbd

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

packages/shell-api/src/database.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -445,13 +445,6 @@ export default class Database extends ShellApiWithMongoClass {
445445

446446
assertArgsDefinedType([pipeline], [true], 'Database.aggregate');
447447

448-
if (!Array.isArray(pipeline)) {
449-
throw new MongoshInvalidInputError(
450-
'Aggregate pipeline argument must be an array',
451-
CommonErrors.InvalidArgument
452-
);
453-
}
454-
455448
this._emitDatabaseApiCall('aggregate', { options, pipeline });
456449

457450
const { aggOptions, dbOptions, explain } = adaptAggregateOptions(options);

0 commit comments

Comments
 (0)