Skip to content

Conversation

@alecgibson
Copy link
Collaborator

This change adds support for mongodb@6. The main change that affects this library is that findOneAndUpdate() now returns the document itself by default, and metadata must be explicitly requested with includeResultMetadata: true, which we set to make this library work with v4-6 of mongodb.

This change adds support for [`mongodb@6`][1]. The main change that
affects this library is that `findOneAndUpdate()` now returns the
document itself by default, and metadata must be explicitly requested
with `includeResultMetadata: true`.

[1]: https://github.com/mongodb/node-mongodb-native/releases/tag/v6.0.0
@alecgibson alecgibson merged commit 6591bf7 into main Aug 30, 2023
@alecgibson alecgibson deleted the mongodb6 branch August 30, 2023 10:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants