Skip to content
This repository was archived by the owner on Oct 31, 2024. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/client.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { type OutgoingHttpHeaders } from "node:http";
import { EJSON } from "bson";
import { EJSON, type ObjectId } from "bson";
import type {
Sort,
Filter,
Expand Down Expand Up @@ -275,7 +275,7 @@ export class Collection<TSchema = Document> {
*/
async insertOne(
document: OptionalUnlessRequiredId<TSchema>
): Promise<DataAPIResponse<{ insertedId: string }>> {
): Promise<DataAPIResponse<{ insertedId: ObjectId }>> {
return this.callApi("insertOne", {
document,
});
Expand Down