So it is not impossible then? What would be a good workaround this issue?
I also need to batch save objects into Moralis database.
const axiosFunc = async (apiUrl, xAPIKey, editionSize, imageDataArray, arrayOfArrays, i) => {
await rateLimiter.schedule(() => axios
.post(apiUrl, arrayOfArrays, {
maxContentLength: 100000000000,
maxBodyLength: 1000000000000,
headers: {
"X-API-Key": xAPIKey,
"content-type": "application/json",
accept: "application/json",
},
})
.then((res) => {
console.log("IMAGE FILE PATHS:", res.data);
imageMD.set("path", res.data[0].path);
imageMD.set("path", res.data[1].path);
imageMD.set("path", res.data[2].path);
imageMD.set("path", res.data[3].path);
imageMD.save().then(
(imageMD) => {
console.log("saved image metadata!");
},
(error) => {
console.log("failed to save image metadata!");
}
);
The code above is the one I am using to test this loop. You canβt see it now because I deleted the loop and just tried to hardcode it because I suspected there was a problem with the loop. But now that I read your message, it makes sense to me that this batch feature is not implemented yet.