-
Notifications
You must be signed in to change notification settings - Fork 44
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
feat: Add ability to delete multiple documents, using multiple ids #196
feat: Add ability to delete multiple documents, using multiple ids #196
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #196 +/- ##
===========================================
+ Coverage 56.96% 57.90% +0.94%
===========================================
Files 99 99
Lines 9664 9571 -93
===========================================
+ Hits 5505 5542 +37
+ Misses 3547 3413 -134
- Partials 612 616 +4
|
Lets get tests on this, can just continue the same structure of tests the first PR for the delete added. |
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.
Just tests and we're good! solid stuff
9158ad2
to
dbb9cf8
Compare
Added tests and adhered to the code review suggestion. @jsimnz |
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.
Beautiful work, small request on the file structure for the tests.
Im approving now tho. Just make the change and merge whenever.
👍
dbb9cf8
to
480a000
Compare
…ourcenetwork#196) ### ISSUE: Resolves sourcenetwork#164 Resolves sourcenetwork#165 ### DESCRIPTION: Adds the ability to delete multiple documents, using multiple ids. We can now delete multiple documents using multiple dockeys (i.e. ids). For example: ``` mutation { delete_user(ids: ["bae-3a1a496e-24eb-5ae3-9c17-524c146a393e" , "bae-6a6482a8-24e1-5c73-a237-ca569e41507d"]) { KeyOfDeletedDocument: _key } } ``` Gives this on successful deletion of all documents: ``` { "data": [ { "KeyOfDeletedDocument": "bae-3a1a496e-24eb-5ae3-9c17-524c146a393e" }, { "KeyOfDeletedDocument": "bae-6a6482a8-24e1-5c73-a237-ca569e41507d" } ] } ``` ### COMMITS: * feat: Add implementation for deleting multiple documents. * test: Add tests for the multiple document deletion using multiple keys. * refactor: Split tests into seperate files for the deletion mutuation command. * fix: suppress linter error.
Resolves #164
Resolves #165
Adds the ability to delete multiple documents, using multiple ids.
We can now delete multiple documents using multiple dockeys (i.e. ids).
For example:
Gives this on successful deletion of all documents: