skip to Main Content

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"…

VIEW QUESTION

Mongodb – get does not return the data in express

I'm working with a simple GET request but it returns nothing in the browser with no warnings. I checked all the connections to Mongoose works perfectly and collection name are correct. const uriAtlas = "mongodb://localhost:27017/appfullMern"; mongoose.connect(uriAtlas).then(() => console.log("successful connexion DB")…

VIEW QUESTION
Back To Top
Search