Class MergeOperation.MergeOperationTarget

java.lang.Object
org.springframework.data.mongodb.core.aggregation.MergeOperation.MergeOperationTarget
Enclosing class:
MergeOperation

public static class MergeOperation.MergeOperationTarget extends Object
Value Object representing the into field of a $merge aggregation stage.
If not stated explicitly via inDatabase(String) the collection is created in the very same database. In this case into is just a single String holding the collection name.
     into: "target-collection-name"
 
If the collection needs to be in a different database into will be a Document like the following
 {
        into: {}
 }
 
Since:
2.3
Author:
Christoph Strobl