hello, mongodb extract a data as array, but to post on instagram we need to create a new array example
[
{
"_id": "ghi783",
"title": "item1",
"image": "https://image1.png"
},
{
"_id": "ghi189",
"title": "item2",
"image": "https://image2.png"
},
{
"_id": "ghi729",
"title": "item3",
"image": "https://image3.png"
}
]
ma mi serva da inserire su instagram post carousel
[
{ "image_url": "https://image1.png", "Media Type": "IMAGE" },
{ "image_url": "https://image2.png", "Media Type": "IMAGE" },
{ "image_url": "https://image3.png", "Media Type": "IMAGE" }
]
can you help me