I have a records collection with the following indexes: {"_id":1} {"car.make":1,"city":1,"car.mileage":1} And performing the following query: db.records.agg
I use Node with Monk, a simple library for MongoDB. It doesn't have insertOne and so on. And it's totally annoying to get a deprecation warning on each insert.
I have a Mongo collection like this: { "user_id" : "1", "branch_id" : "1", "trans_type":"DEBIT", "total" : 500 }, { "user_id" : "1", "b
Basically I have a mongodb collection called 'people' whose schema is as follows: people: { name: String, friends: [{firstName: String, lastN
I am using Django + mongoengine I want to update the books (embedded document) count in my Bookscollection document. I want the update query to return the full
I need to download a resume from GridFS, below is the code ive written to do it, but this seems to not give me a physical file for download, this is used to rea
Is it possible to use spark structured streaming to read data from mongo db with a readStream ? For standard use of structured streaming, I usually do so: va
When starting my application it connects to MongoDB Atlas as logged, however, when running mocha tests it does not even try to connect to the DB. here is my ser
I'm following the official instructions found here (on Mac OS Big Sur): https://docs.mongodb.com/manual/tutorial/install-mongodb-on-os-x/ When attempting to run
I have to run this query in Java db.Users.find({"name": /^ind/i}) My Java code is Document findQuery = new Document(); findQuery.append("name", Pattern.co
I just noticed that when i update my schema definition and add a field, for instance "name: String" and then try to use People.update( { _id: user_id }, { $se
I'm using MongoDB Compass to visually build my collection. In the highlighted section, I don't see a "Document" type to insert a sub-Document. Am I doing it th
how can i make BCryptPasswordEncoder() work in spring because in my application can't find that class about that and the message is not matching for dependenci
I'm using MongoDb v3.0.3 and want to create a user in a database with admin privileges using powershell. I hook into the C# driver but I don't get very far: $p
I correctly use the username and password in the url of vs code for my server side but in the cmd i find the error of mongodb authentication fail. why this is h
I'm trying to understand reactive part of spring 5. I have created simple rest endpoint for finding all entities using spring web-flux and spring data reactive
Basically to run the tests, I need the database connection to MongoDb to be ready. The database manager has a connect method to get a connection and a get metho
I am currently trying to implement an update / put functionality in my node.js-project and having issues I have absolutely no clue, where that comes from. (also
I am new to MongoDB and I am stuck on the String to Date conversion. In the db the date item is stored in String type as "date":"2015-06-16T17:50:30.081Z" I wa
I am building the backend for creating blog posts for my web application while following a tutorial. The technologies I am using are MongoDB, express.js, formid