We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
$setOnInsert
One more update operator in-scope for first version is $setOnInsert: similar to $set but only applying on actual inserts, not updates.
$set
Expected behavior should be similar to what is shown here:
https://www.mongodb.com/docs/manual/reference/operator/update/setOnInsert/#mongodb-update-up.-setOnInsert
The text was updated successfully, but these errors were encountered:
Note: detection of whether a document to update or insert can be found from ReadAndUpdateOperation;
ReadAndUpdateOperation
DocumentUpdater.DocumentUpdaterResponse documentUpdaterResponse = documentUpdater().applyUpdates(readDocument.document().deepCopy()); final JsonNode originalDocument = readDocument.txnId() == null ? null : readDocument.document();
where missing txnId() indicates a newly inserted document
txnId()
Sorry, something went wrong.
Fix #219: add $setOnInsert update operation
9099b23
Fix #219: add $setOnInsert update operation (#225)
a37700f
tatu-at-datastax
Successfully merging a pull request may close this issue.
One more update operator in-scope for first version is
$setOnInsert
: similar to$set
but only applying on actual inserts, not updates.Expected behavior should be similar to what is shown here:
https://www.mongodb.com/docs/manual/reference/operator/update/setOnInsert/#mongodb-update-up.-setOnInsert
The text was updated successfully, but these errors were encountered: