Why is updateMany not working in my MongoDB / Mongoose-project?
I have made a simple database with some books and some authors. Now I want to update the author-objects with new info. But nothing is happening in the database.
Using $or to get ratings average of the selected values, for example from 4 to 4.9 doesn’t work
In my DB the ratingsAverage
‘s type is Number
. I want to implement filtering functionality depending on the ratings. For example, if the user selects 4, the result will be the ratings that fall within the range of 4 to 4.9. Selecting other ratings is possible too.
mongoose: using $or to get ratings average of the selected values, for example from 4 to 4.9 doesn’t work
in my DB the ratingsAverage
‘s type is Number
.
I want to implement filtering functionality depending on the ratings. for example, if the user selects 4, the result will be the ratings fall within the range of 4 to 4.9. selecting other ratings is possible too.
findOne hangs indefinitely (older versions do not)
Working on a large project. Several dozen collections, 1 million users a day, 10,000+ db transactions a second.
Mongoose 8.4.5 findOne hangs indefinitely (older versions do not)
Working on a large project. Several dozen collections, 1 million users a day, 10,000+ db transactions a second.
Is there a way to change a field from an array to a single element in a mongodb query
I am trying to query my DB on a collection but I have some field that I would like to change from an array of objects to a single object that have been picked up randomly from the array. is this possible to do this in a query?
Scaling mongodb for a social media feed
Are there limitations to how much mongodb can scale when it comes to querying millions of documents.
Filter document according to matching array value in mongodb
I have a mongodb collection named students
, where there are 3 documents:
Updating an array within an array gives Location40324 error in mongodb
I am creating a student management system. I am using nodejs, expressjs, ejs and mongoose.
Here is the code for Student model:
How to filter a mongodb document based on an element of an array?
I am creating a student management system. I am using nodejs, expressjs, ejs and mongoose.