Skip to content

Commit 9b7d2b6

Browse files
committed
also in bulk
1 parent 0440995 commit 9b7d2b6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/shell-api/src/bulk.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import { asPrintable } from './enums';
2121
import { assertArgsDefinedType, shallowClone } from './helpers';
2222
import { BulkWriteResult } from './result';
2323
import type { CollectionWithSchema } from './collection';
24-
import type { MQLQuery } from './mql-types';
24+
import type { MQLDocument, MQLQuery } from './mql-types';
2525

2626
@shellApiClassDefault
2727
export class BulkFindOp extends ShellApiWithMongoClass {
@@ -210,7 +210,7 @@ export default class Bulk extends ShellApiWithMongoClass {
210210

211211
@returnType('Bulk')
212212
@apiVersions([1])
213-
insert(document: Document): Bulk {
213+
insert(document: MQLDocument): Bulk {
214214
this._batchCounts.nInsertOps++;
215215
assertArgsDefinedType([document], [true], 'Bulk.insert');
216216
this._serviceProviderBulkOp.insert(document);

0 commit comments

Comments
 (0)