T
tRPC

Sequential batch mutation

Sequential batch mutation

MMugetsu5/11/2023
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.
AKAlex / KATT 🐱5/11/2023
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
MMugetsu5/12/2023
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

Looking for more? Join the community!

T
tRPC

Sequential batch mutation

Join Server