org.springframework.data.mongodb.core

Interface ReactiveRemoveOperation

  • All Known Subinterfaces:
    ReactiveFluentMongoOperations, ReactiveMongoOperations
    All Known Implementing Classes:
    ReactiveMongoTemplate


    public interface ReactiveRemoveOperation
    ReactiveRemoveOperation allows creation and execution of reactive MongoDB remove / findAndRemove operations in a fluent API style.
    The starting domainType is used for mapping the Query provided via matching into the MongoDB specific representation. The collection to operate on is by default derived from the initial domainType and can be defined there via Document. Using inCollection allows to override the collection name for the execution.
         
             remove(Jedi.class)
                 .inCollection("star-wars")
                 .matching(query(where("firstname").is("luke")))
                 .all();
         
     
    Since:
    2.0
    Author:
    Mark Paluch, Christoph Strobl