Uses of Class
org.springframework.data.mongodb.core.aggregation.MergeOperation.WhenDocumentsDontMatch
Package
Description
Support for the MongoDB aggregation framework.
-
Uses of MergeOperation.WhenDocumentsDontMatch in org.springframework.data.mongodb.core.aggregation
Modifier and TypeMethodDescriptionMergeOperation.WhenDocumentsDontMatch.discardDocument()
Discard the document - do not insert the document into the output collection.MergeOperation.WhenDocumentsDontMatch.failWhenNotMatch()
Stop and fail the aggregation operation.MergeOperation.WhenDocumentsDontMatch.insertNewDocument()
Insert the document into the output collection.MergeOperation.WhenDocumentsDontMatch.whenNotMatchedOf
(String value) Factory method creatingMergeOperation.WhenDocumentsDontMatch
from avalue
literal.Modifier and TypeMethodDescriptionMergeOperation.MergeOperationBuilder.whenDocumentsDontMatch
(MergeOperation.WhenDocumentsDontMatch whenNotMatched) The action to take place when documents do not already exist in the target collection.MergeOperation.MergeOperationBuilder.whenNotMatched
(MergeOperation.WhenDocumentsDontMatch whenNotMatched) The action to take place when documents do not 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
.