My question is the same as UPDATE multiple rows from multiple params in nodejs/pg however I face the issue the question author pointed out in the comments.
Basically, I want to perform a multi-row update and have such an array of objects like
const arr = [
{ image_id: 1, image_url: "xyz.com/image" }
]
Now I want to use that array to generate the SQL statement but just like the author in the link above, I don't know how to make an array of objects into an array of tuples like SQL expects.