i am trying to use mongodb to get some data for our analytics page, there’s alot of data that’s processing but for some reason the express returns empty array as response even when i use console log i …
Tag: mongodb
I have been trying to wrap my head around Dynamic Scoping, I love that with MongoDB you have the option to scope with strings, for example (this is pseudo and has not been tested) const data = Schema….
I have two collections, class collection and student collection class collection { “_id” : “1999558581”, “name” : “Class One”, }, { “_id” :…
I am trying to build a .js script to be executed in a mongo shell that requires to do the following: obtain a list of all collection names with the word “CollectionUpgrade” separate the …
This code is incorrect. Redirect only redirects, I don’t think you can pass results through it. router.post(‘/form’, function(req, res, next){ var student = new StudentModel({ firstName: req….
I had a problem. When i create map in MongoDB Example Shop guildID: id, ownerID: owner_id, _premium: 0, Moderation:{ auto:false, prefix:’k!’, …
I have interest in one problem like this: Initially we have document in database. for example: [ {name: 1} , {name: 2}, {name: 3} , {name: 4} , {name: 5} , {name: 6} , ….] I want to find some …
Does MongoDB ever have an automatic function? For example, when my profile VIP expires, my status should be transferred to a regular user. So which function should I write Schema in?
I have a problem when I try to update or delete data from my MongoDB Atlas database. The thing is, it looks like the “updateOne” and “deleteOne” methods are being called but not in …
I’ve figured out how to make a PUT request to store a PDF to my “User” schema. How would I access the coverLetter object from the “req.profile = user” to make a delete request of …