I have array of objects,
let arr = [
{
key:"123",
data:"dfghj"
},
{
key:"1234",
data:"dfgfdfej"
},
{
key:"12",
data:"drrfghj"
}
]
so I want to update each object in db if its present then update that object and if not present in db create that, use mongodb mongoose on node js use updatemany and upsert