-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add ability to delete multiple documents, using multiple ids (#196
) ### ISSUE: Resolves #164 Resolves #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.
- Loading branch information
1 parent
cdaad72
commit 8ffd2b5
Showing
5 changed files
with
407 additions
and
217 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.