Annotation Interface MongoUpdateReturningQuery
Defines a custom MongoDB single-document update query that returns a document result.
This annotation marks the method as an update-returning operation and supports projection and returned-document state selection.
- Since:
- 5.0.0
- Author:
- radovanradic
-
Required Element Summary
Required Elements -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionString[]The array filters.The custom collation represented in JSON.The custom MongoDB filter.The custom fields projection represented in JSON.com.mongodb.client.model.ReturnDocumentControls whether MongoDB returns the document state before or after the update.The custom sort represented in JSON.
-
Element Details
-
update
-
filter
The custom MongoDB filter.- Returns:
- The filter JSON
- Default:
""
-
collation
The custom collation represented in JSON.- Returns:
- The collation JSON
- Default:
""
-
project
The custom fields projection represented in JSON.- Returns:
- The projection JSON
- Default:
""
-
sort
-
arrayFilters
The array filters.- Returns:
- The array filters
- Default:
{}
-
returnDocument
com.mongodb.client.model.ReturnDocument returnDocumentControls whether MongoDB returns the document state before or after the update.- Returns:
- The requested returned document state
- Default:
BEFORE
-