Interface ReactiveUpdateOperation.TerminatingUpdate<T>

All Superinterfaces:
ReactiveUpdateOperation.FindAndModifyWithOptions<T>, ReactiveUpdateOperation.TerminatingFindAndModify<T>
Enclosing interface:
ReactiveUpdateOperation

public static interface ReactiveUpdateOperation.TerminatingUpdate<T> extends ReactiveUpdateOperation.TerminatingFindAndModify<T>, ReactiveUpdateOperation.FindAndModifyWithOptions<T>
Compose update execution by calling one of the terminating methods.
  • Method Summary

    Modifier and Type
    Method
    Description
    reactor.core.publisher.Mono<com.mongodb.client.result.UpdateResult>
    all()
    Update all matching documents in the collection.
    reactor.core.publisher.Mono<com.mongodb.client.result.UpdateResult>
    Update the first document in the collection.
    reactor.core.publisher.Mono<com.mongodb.client.result.UpdateResult>
    Creates a new document if no documents match the filter query or updates the matching ones.

    Methods inherited from interface org.springframework.data.mongodb.core.ReactiveUpdateOperation.FindAndModifyWithOptions

    withOptions

    Methods inherited from interface org.springframework.data.mongodb.core.ReactiveUpdateOperation.TerminatingFindAndModify

    findAndModify
  • Method Details

    • all

      reactor.core.publisher.Mono<com.mongodb.client.result.UpdateResult> all()
      Update all matching documents in the collection.
      Returns:
      never null.
    • first

      reactor.core.publisher.Mono<com.mongodb.client.result.UpdateResult> first()
      Update the first document in the collection.
      Returns:
      never null.
    • upsert

      reactor.core.publisher.Mono<com.mongodb.client.result.UpdateResult> upsert()
      Creates a new document if no documents match the filter query or updates the matching ones.
      Returns:
      never null.