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 ...
here is my code here is the error MongooseError('Model.find() no longer accepts a callback'); ...
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'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'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 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 ...
Post Modal User Model The Post model has a reference to a User model and a Group model. The method populates these references with their corre ...
In my Node.js microservice, I use Mongoose to get a document out from my mongoDB. The document has many properties but i only want to project 3 of the ...
Here is the object to be updated or inserted in case it does not exist: t to replace the items entry if exist with a new one or create a new entry ...
I am not sure if should i create multiple databases or not. But I think multiple db would create better data. So I want to create a app, where users c ...
Issue with JWT service I'm trying to use for user auth ERROR [ExceptionHandler] Nest can't resolve dependencies of the AuthService (?, JwtService). P ...
I have the following Mongoose schema as defined on this page Now I want to create a virtual on AuthorSchema to get the BlogPosts which have comment ...
How can I get the value of this array Example: How can I get the value of MembersID:[0]:811664013313310720 in this case it would be 811664013313 ...
I can't get my create resolver to return the newly created document. It returns null for all values. Here's the code: RESOLVER // SECTION SCHEDU ...
I am getting an array where I have userid and I want to remove all users from the purchasedUsers but not getting the object property and not remov ...
im newer about MongoDb and Node.Js. I should check if an Asset exists, and then (if not exist) create it. This is the Asset schema Check if asset ...
** I want to create a function that accepts any data like id, email, etc., and finds the user based on the input passed to it. ** ex: should I Pas ...
I have created a Notes model having schema as shown below To show the User his notes for a particular task/problem I am trying to fetch notes and s ...