Can Reactive Mongo Template execute MergeOperation?

120 Views Asked by At

I want to know if it is possible to execute MergeOperation snippet:

MergeOperation mergeOperation = Aggregation.merge()
        .intoCollection("someCollection")
        .on("_id")
        .whenMatched(MergeOperation.WhenDocumentsMatch.mergeDocuments())
        .whenNotMatched(MergeOperation.WhenDocumentsDontMatch.discardDocument())
        .build();

with the ReactiveMongoTemplate. Like what specified in here, but with reactive streams.

0

There are 0 best solutions below