Skip to content

Commit 6c81d4e

Browse files
arturmulleraditi-khare-mongoDB
andauthoredFeb 5, 2025··
fix(NODE-6690): Remove extraneous Document in replaceOne return type (#4383)
Co-authored-by: Aditi Khare <106987683+aditi-khare-mongoDB@users.noreply.github.com>
1 parent 3a4edd5 commit 6c81d4e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/collection.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ export class Collection<TSchema extends Document = Document> {
389389
filter: Filter<TSchema>,
390390
replacement: WithoutId<TSchema>,
391391
options?: ReplaceOptions
392-
): Promise<UpdateResult<TSchema> | Document> {
392+
): Promise<UpdateResult<TSchema>> {
393393
return await executeOperation(
394394
this.client,
395395
new ReplaceOneOperation(

0 commit comments

Comments
 (0)
Please sign in to comment.