Transform array from mongodb query in other array of object with custom field

hello, mongodb extract a data as array, but to post on instagram we need to create a new array :slight_smile: 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

Welcome to the Make Community!

Put that JSON in a Parse JSON module.

Add this before

{"array":

Add this after:

}

Now you should have an array variable that you can map into the files field.

Hope this helps! Let me know if there are any further questions or issues.

— @samliew