Add withSession() function #14330
Labels
enhancement
This issue is a user-facing general improvement that doesn't fix a bug or add a new feature
new feature
This change adds new functionality, like a new method or class
Milestone
Prerequisites
🚀 Feature Proposal
Add withSession() function that would handle session's object lifetime. It should be analogous to the withTransaction() function.
For more details, see MongoDB driver documentation: https://mongodb.github.io/node-mongodb-native/6.3/classes/MongoClient.html#withSession
Motivation
There are two reasons why I believe withSession() function is required:
Ease of use
Consistency
Example
No response
The text was updated successfully, but these errors were encountered: