diff --git a/src/client.ts b/src/client.ts index 3be049a..27da270 100644 --- a/src/client.ts +++ b/src/client.ts @@ -1,5 +1,5 @@ import { type OutgoingHttpHeaders } from "node:http"; -import { EJSON } from "bson"; +import { EJSON, type ObjectId } from "bson"; import type { Sort, Filter, @@ -275,7 +275,7 @@ export class Collection { */ async insertOne( document: OptionalUnlessRequiredId - ): Promise> { + ): Promise> { return this.callApi("insertOne", { document, });