UpdateBatch
Updating fields of documents.
To make it easier to work with individual fields, the native MongoDB driver has the updateMany
method, which can be used to filter and then update documents.
This is provided in en2do via the updateFieldsBy
method operator or via the predefined updateAllFields(UpdateBatch updateBatch)
method.
Example of using UpdateBatch
:
To optimize performance in this respect, several FieldUpdate
can be combined in one call.
Example of multiple FieldUpdate
in one call:
Last updated