From d2f605288f6be3014f9f1edd1f70eb555a41a30c Mon Sep 17 00:00:00 2001 From: Jordan Stout Date: Wed, 26 May 2021 15:31:28 -0700 Subject: [PATCH] fix(NODE-3311): InsertOneOptions extends CommandOperationOptions (#2816) --- src/operations/insert.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/operations/insert.ts b/src/operations/insert.ts index e1bd1e00b0d..d7ab53d58bb 100644 --- a/src/operations/insert.ts +++ b/src/operations/insert.ts @@ -1,13 +1,13 @@ import { MongoError } from '../error'; import { defineAspects, Aspect, AbstractOperation } from './operation'; -import { CommandOperation } from './command'; +import { CommandOperation, CommandOperationOptions } from './command'; import { prepareDocs } from './common_functions'; import type { Callback, MongoDBNamespace } from '../utils'; import type { Server } from '../sdam/server'; import type { Collection } from '../collection'; -import type { Document, BSONSerializeOptions } from '../bson'; +import type { Document } from '../bson'; import type { BulkWriteOptions } from '../bulk/common'; -import { WriteConcern, WriteConcernOptions } from '../write_concern'; +import { WriteConcern } from '../write_concern'; import type { ClientSession } from '../sessions'; import { BulkWriteOperation } from './bulk_write'; import type { InferIdType } from '../mongo_types'; @@ -46,7 +46,7 @@ export class InsertOperation extends CommandOperation { } /** @public */ -export interface InsertOneOptions extends BSONSerializeOptions, WriteConcernOptions { +export interface InsertOneOptions extends CommandOperationOptions { /** Allow driver to bypass schema validation in MongoDB 3.2 or higher. */ bypassDocumentValidation?: boolean; /** Force server to assign _id values instead of driver. */