From 87f0268e0f388e0f296851cde4da3078e447fe69 Mon Sep 17 00:00:00 2001 From: Mosh Feu Date: Fri, 28 Mar 2025 22:54:44 +0300 Subject: [PATCH] types(ModifyResult): update lastErrorObject --- src/collection.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/collection.ts b/src/collection.ts index a2df98ae2da..3dc11004aeb 100644 --- a/src/collection.ts +++ b/src/collection.ts @@ -98,7 +98,11 @@ import { WriteConcern, type WriteConcernOptions } from './write_concern'; /** @public */ export interface ModifyResult { value: WithId | null; - lastErrorObject?: Document; + lastErrorObject?: { + n: integer; + updatedExisting: boolean; + upserted: WithId; + }; ok: 0 | 1; }