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; }