We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf52c7f commit f896fbdCopy full SHA for f896fbd
packages/shell-api/src/database.ts
@@ -445,13 +445,6 @@ export default class Database extends ShellApiWithMongoClass {
445
446
assertArgsDefinedType([pipeline], [true], 'Database.aggregate');
447
448
- if (!Array.isArray(pipeline)) {
449
- throw new MongoshInvalidInputError(
450
- 'Aggregate pipeline argument must be an array',
451
- CommonErrors.InvalidArgument
452
- );
453
- }
454
-
455
this._emitDatabaseApiCall('aggregate', { options, pipeline });
456
457
const { aggOptions, dbOptions, explain } = adaptAggregateOptions(options);
0 commit comments