org.springframework.data.mongodb.core

Interface ReactiveInsertOperation

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


    public interface ReactiveInsertOperation
    ReactiveInsertOperation allows creation and execution of reactive MongoDB insert and bulk insert operations in a fluent API style.
    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.
         
             insert(Jedi.class)
                 .inCollection("star-wars")
                 .one(luke);
         
     
    Since:
    2.0
    Author:
    Mark Paluch, Christoph Strobl