I've encountered a problem while setting up mongoose. My code Error: MongooseError: Model.findOneAndUpdate() no longer accepts a callback at Func ...
I've encountered a problem while setting up mongoose. My code Error: MongooseError: Model.findOneAndUpdate() no longer accepts a callback at Func ...
I want to validate document before it is inserted into the database. I know that I can set static validator, but I would prefer to have a file with th ...
I am trying to connect mongodb with the help of mongoose in Next.js 13.3 Version but it is giving different errors when i import the connectDb file or ...
here is my code here is the error MongooseError('Model.find() no longer accepts a callback'); ...
I am trying to migrate Strapi v3 with MongoDB to Strapi v4 with Postgres. I am following the official documentation https://docs.strapi.io/dev-docs/mi ...
I am trying to build this app https://github.com/dwgebler/node-express-example. I want to use it as a template for making a Mongodb http express serve ...
I am trying to iterate over an array retrieved from a Model.find() call. The listId is new ObjectId(1234qwer1234qwer) and the error is Type 'Object ...
I am trying to build this app https://github.com/dwgebler/node-express-example. I want to use it as a template for making a Mongodb http express serve ...
I'm trying to do a user registration with a Node js app and MongoDB but I have this error: const utente = new Utente({ ||||| TypeError: Utente is not ...
I have two list of Ids named List<Guid> A and List<Guid>B, For list A i want to set Update.Set("IsPending", True) and for List B i wan ...
I'm trying to write a Discord.JS bot that lists and removes specific channels/threads using MongoDB's Model and Schema functionality. I've gotten ever ...
I am creating the rest APIs using Next Js and MongoDB, with Type Script checking. When creating one of the routes to fetch the post by Id, I get the f ...
I'm trying to get the value from articlePrice only. But also get the attribute name. How do I fix that? MAX: { articelPrice: 560.5 } MIN: { arti ...
I have a requirement where in I need to filter records in mongo db using provided referenceDate. dateTimeValidUntil is stored as LocalDateTime in db. ...
I'm trying to do a user registration with a Node js app and MongoDB but I have this error: There's my model utente.js and there's my database.js ...
I have a MongoDB with 3 collections. Here are the 3 collections each with an example of a document it contains: tag computer setting As ...
I have this code where I create a mongoose transaction. However it's not working as I expect. As you can see here, I'm testing the transaction by thro ...
Considering I have a users collection contains those documents: { _id: 1, hobbies: ['eat', 'read', 'swim'] }, ...
I want to connect a PostgreSQL database with a MongoDB by using Mongo_fdw. After following this instruction to install mongo_fdw with the autogen.sh s ...
I have to write an aggreagtion pipeline in which I will pass: Timestamps of start date and end data for a day I have to divide the data into 30 ...