Support hints on Update.

This commit makes sure to read query hints and apply them to the MongoDB UpdateOptions when running an update via Reactive-/MongoTemplate.

Original pull request: #4311
Closes: #3218
This commit is contained in:
Christoph Strobl
2023-03-02 09:51:50 +01:00
committed by Mark Paluch
parent 0020499d4e
commit cd63501680
5 changed files with 63 additions and 0 deletions

View File

@@ -922,6 +922,7 @@ Most methods return the `Update` object to provide a fluent style for the API.
* *updateMulti*: Updates all objects that match the query document criteria with the updated document.
WARNING: `updateFirst` does not support ordering. Please use <<mongo-template.find-and-upsert, findAndModify>> to apply `Sort`.
NOTE: Index hints for the update operation can be provided via `Query.withHint(...)`.
[[mongodb-template-update.update]]
==== Methods in the `Update` Class