I can upload a single file using apollo-upload-client but not inside a loop.
It actually sends a file and response back as base64 binary, which takes 10 seconds but it uploads all files instantly without any response.
selectedFilesArray.map(async (file: any) => {
try {
await mutate({ variables: { file } });
} catch (e) {
console.log("error: ", e);
}
});