Last active
August 31, 2019 12:33
-
-
Save gsans/5929028e2b41a89e24ad8641638ba983 to your computer and use it in GitHub Desktop.
Delete a batch of items using GraphQL
This file contains hidden or 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
# GraphQL query | |
mutation batchDelete($a:ID $b:ID $c:ID $d:ID $e:ID) { | |
a:deleteItem(input:{ id:$a }) { id } | |
b:deleteItem(input:{ id:$b }) { id } | |
c:deleteItem(input:{ id:$c }) { id } | |
d:deleteItem(input:{ id:$d }) { id } | |
e:deleteItem(input:{ id:$e }) { id } | |
} | |
# Query variables | |
{ | |
"a": "098ee7ea-aef8-4404-9eef-466058e53c34", | |
"b": "6c2d17dd-d133-4382-ab0b-663b4a067b03", | |
"c": "f73aa37b-38f4-4d33-b38a-4c20492a362b", | |
"d": "5ec75101-0c0e-4738-bb8e-5cfab57cc49a", | |
"e": "9e342ca1-231d-4790-8191-4b26a4d89c2a" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment