|
1 | 1 | import { MongoError } from '../error'; |
2 | 2 | import { defineAspects, Aspect, AbstractOperation } from './operation'; |
3 | | -import { CommandOperation } from './command'; |
| 3 | +import { CommandOperation, CommandOperationOptions } from './command'; |
4 | 4 | import { prepareDocs } from './common_functions'; |
5 | 5 | import type { Callback, MongoDBNamespace } from '../utils'; |
6 | 6 | import type { Server } from '../sdam/server'; |
7 | 7 | import type { Collection } from '../collection'; |
8 | | -import type { Document, BSONSerializeOptions } from '../bson'; |
| 8 | +import type { Document } from '../bson'; |
9 | 9 | import type { BulkWriteOptions } from '../bulk/common'; |
10 | | -import { WriteConcern, WriteConcernOptions } from '../write_concern'; |
| 10 | +import { WriteConcern } from '../write_concern'; |
11 | 11 | import type { ClientSession } from '../sessions'; |
12 | 12 | import { BulkWriteOperation } from './bulk_write'; |
13 | 13 | import type { InferIdType } from '../mongo_types'; |
@@ -46,7 +46,7 @@ export class InsertOperation extends CommandOperation<Document> { |
46 | 46 | } |
47 | 47 |
|
48 | 48 | /** @public */ |
49 | | -export interface InsertOneOptions extends BSONSerializeOptions, WriteConcernOptions { |
| 49 | +export interface InsertOneOptions extends CommandOperationOptions { |
50 | 50 | /** Allow driver to bypass schema validation in MongoDB 3.2 or higher. */ |
51 | 51 | bypassDocumentValidation?: boolean; |
52 | 52 | /** Force server to assign _id values instead of driver. */ |
|
0 commit comments