-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
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
FindOneAndDelete command implementation #332
Conversation
@@ -138,7 +172,7 @@ private QueryOuterClass.Query buildDeleteQuery() { | |||
* @return Uni<Boolean> `true` if deleted successfully, else `false` if data changed and no longer |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed to Tuple2, need to update javadoc
return FindOperation.sorted( | ||
commandContext, | ||
filters, | ||
// 24-Mar-2023, tatu: Since we update the document, need to avoid modifications on |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can remove these comments where copying old tests (for all test setup same applies)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good; had minor suggestions but nothing major.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
What this PR does:
Implement findOneAndDelete command which finds and deletes a document and returns the deleted document in the response
Which issue(s) this PR fixes:
Fixes #319
Checklist