I would have thought this was straightforward but I think it might give unexpected results. I basically load a few documents into a variable.. then I want to save the whole document back to MongoDB.
Do I have to save each one individually using save https://docs.mongodb.com/manual/reference/method/db.collection.save/
Or can I send them as an array using updatemany https://docs.mongodb.com/manual/reference/method/db.collection.updateMany/
it doesn't seem that clear in the docs how to do that.. if you can.
Thanks for your time.