Uses of Class
org.springframework.data.mongodb.core.aggregation.MergeOperation.WhenDocumentsMatch
Package
Description
Support for the MongoDB aggregation framework.
-
Uses of MergeOperation.WhenDocumentsMatch in org.springframework.data.mongodb.core.aggregation
Modifier and TypeMethodDescriptionMergeOperation.WhenDocumentsMatch.failOnMatch()
Stop and fail the aggregation operation.MergeOperation.WhenDocumentsMatch.keepExistingDocument()
Keep the existing document in the output collection.MergeOperation.WhenDocumentsMatch.mergeDocuments()
Merge the matching documents.MergeOperation.WhenDocumentsMatch.replaceDocument()
Replace the existing document in the output collection with the matching results document.MergeOperation.WhenDocumentsMatch.updateWith
(List<AggregationOperation> aggregationPipeline) Use an aggregation pipeline to update the document in the collection.MergeOperation.WhenDocumentsMatch.updateWith
(Aggregation aggregation) Use anAggregation
to update the document in the collection.MergeOperation.WhenDocumentsMatch.whenMatchedOf
(String value) Modifier and TypeMethodDescriptionMergeOperation.MergeOperationBuilder.whenDocumentsMatch
(MergeOperation.WhenDocumentsMatch whenMatched) The action to take place when documents already exist in the target collection.MergeOperation.MergeOperationBuilder.whenMatched
(MergeOperation.WhenDocumentsMatch whenMatched) The action to take place when documents already exist in the target collection.ModifierConstructorDescriptionMergeOperation
(MergeOperation.MergeOperationTarget into, MergeOperation.UniqueMergeId on, VariableOperators.Let let, MergeOperation.WhenDocumentsMatch whenMatched, MergeOperation.WhenDocumentsDontMatch whenNotMatched) Create new instance ofMergeOperation
.