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.
Alex / KATT 🐱342d 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
Mugetsu342d 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