Optimistic concurrency: select subset of fields to apply optimistic concurrency to #10591
Labels
enhancement
This issue is a user-facing general improvement that doesn't fix a bug or add a new feature
Milestone
Do you want to request a feature or report a bug?
Feature
What is the current behavior?
The Schema
optimisticConcurrency
option is currently a boolean: optimistic concurrency is either on for the whole document, or off for the entire document. Would be nice to allow specifying either fields to enable optimistic concurrency:Or fields to exclude from optimistic concurrency:
See #10583
If the current behavior is a bug, please provide the steps to reproduce.
What is the expected behavior?
What are the versions of Node.js, Mongoose and MongoDB you are using? Note that "latest" is not a version.
The text was updated successfully, but these errors were encountered: