CXX-3076 add support for sort option with replaceOne and updateOne #1321
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Resolves CXX-3076.
All relevent unified spec test files are synced, but those which require CXX-2494 "Bulk Write API" are skipped (
client-bulkWrite-*.json
).Created CXX-3208 to track the required update to the minimum C Driver version (1.30.0) once mongodb/mongo-c-driver@2c5c9d9 is released.
As done for the C Driver in mongodb/mongo-c-driver#1789, the sort option is added to API corresponding to the replaceOne and updateOne operations only. Other bulk write operations (e.g. updateMany) do not support the sort option.