Module spring.data.mongodb
Interface ReactiveRemoveOperation.TerminatingRemove<T>
- All Known Subinterfaces:
ReactiveRemoveOperation.ReactiveRemove<T>,ReactiveRemoveOperation.RemoveWithCollection<T>,ReactiveRemoveOperation.RemoveWithQuery<T>
- Enclosing interface:
- ReactiveRemoveOperation
public static interface ReactiveRemoveOperation.TerminatingRemove<T>
Compose remove execution by calling one of the terminating methods.
-
Method Details
-
all
Mono<com.mongodb.client.result.DeleteResult> all()Remove all documents matching.- Returns:
Monoemitting theDeleteResult. Never null.
-
findAndRemove
Remove and return all matching documents.
NOTE: The entire list of documents will be fetched before sending the actual delete commands. Also,ApplicationEvents will be published for each and every delete operation.- Returns:
- empty
Fluxif no match found. Never null.
-