Mongodb – How to update some collection with different query parameters and with different set values?
I have an array of mongoDB collection - [ { "_id": "630499244683ed43d56edd06", "userId": "630499234683ed43d56edd05", "isPaid": "true" }, { "_id": "6304c19bda84477b41b4bbfa", "userId": "630499234683ed43d56edd05", "isPaid": "true" }, { "_id": "6304c1b5da84477b41b4bbfb", "userId": "630499234683ed43d56edd05", "isPaid": "true" }, { "_id": "6304c1cbda84477b41b4bbfc", "userId": "630499234683ed43d56edd05", "isPaid": "true"…