Mugetsu
Mugetsu15mo ago

Sequential batch mutation

How one would make a mutation as a sequential mutation batch call? Say I have to add 10 apples to the basket. My API allows only to add one at a time so I need to make 10 mutations one after another plus I would need to catch which one succeeded and which failed.
2 Replies
Alex / KATT 🐱
Alex / KATT 🐱15mo ago
We support batching already, so what you likely want to do is to have a central point of doing the mutation in the backend that can only be called once at a time Some sort of mutation queue or something
Mugetsu
Mugetsu15mo ago
Yeah doing this on backend is giving me a headache coz of external API error responses. I managed to do the queue with mutateAsyc calls tho I lose batching but thats not a big deal and it works