-
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 filter. #206
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #206 +/- ##
===========================================
+ Coverage 57.90% 57.93% +0.02%
===========================================
Files 99 99
Lines 9571 9625 +54
===========================================
+ Hits 5542 5576 +34
- Misses 3413 3425 +12
- Partials 616 624 +8
|
672ccd4
to
2ad0ec7
Compare
I don't know what was decided before, but EDIT: You aliases this in the example - my bad, sorry :) |
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 to me, couple of minor points/questions and a bigger one that can perhaps be done in a new ticket now (given that it is RE older delete functionality)
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.
A few minor things to change in addition to andy's comments
5074ae9
to
2dd720d
Compare
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.
Minor comment on the named return values, but approving.
LGTM
…etwork#206) ISSUES: Resolves sourcenetwork#166 Resolves sourcenetwork#167 DESCRIPTION: Adds the ability to delete documents that match the given filter. For example: ``` mutation { delete_user(filter: {name: {_eq: "Shahzad"}}) { DeletedKey: _key } } ``` Gives this on successful deletion of all documents with name = `Shahzad`: ``` { "data": [ { "DeletedKey": "bae-6a6482a8-24e1-5c73-a237-ca569e41507d" }, { "DeletedKey": "bae-de1b3170-b0fa-5ae9-94d6-ae44ad560b24" } ] } ``` COMMITS: * feat: Add deletion of documents that match a filter * test: Add tests for deletion of documents with a filter * Adhere to code review. * Only log on `query.Close()`, do not overwrite return values using named returns.
Resolves #166
Resolves #167
Adds the ability to delete documents that match the given filter.
For example:
Gives this on successful deletion of all documents with name =
Shahzad
: