Greetings friends, I'm new with Nodejs and I have this problem, my function receives an array with some ids of products and I need to iterate over that array to consult and bring the image of that product and in this way to build an array with the results and return it.
function getImgProducts(line_items,cd){
let promises = [];
for (let a = 0; a < line_items.length; a++) {
promises.push(axios.get(Shopify.appurl+'products/'+line_items[a].product_id+'.json?published_status=any&fields=id,images'))
}
console.log(convertToStringValue(promises));
};
Could someone give me a guide with this?