I am using an upsert using mongodb's Jensseger PHP library. Every time I add new data to the document it updates the value of the field if the field names are
This is my first time trying anything with MongoDB, so I would love any tips if you guys have any, but in particular, Im having trouble establishing a connectio
I have defined my schema, I just need to know the syntax to do the actual HTTP POST request. I am using MongoDB with Mongoose framework. This way when I go to m
I have a documents in MongoDB, one of them looks like this: { "_id" : 100, "name" : "Something", "items" : [ { "item" : 47, "color" : "red"
I write a big aggregate query for mongodb, now I try to translate it in Spring Data Mongodb API, and it's very complicated, and spring data api did not help me
I want to query my mongodb to perform a non-match between 2 collections. Here is my structure : CollectionA : _id, name, firstname, website_account_key, emai
In documentation there's deleteMany() method Character.deleteMany({ name: /Stark/, age: { $gte: 18 } }, function (err) {}); I want to remove multiple documents
In Mongodb, the objectid is base64. I'm streaming these docs to Kafka using Debezium. How can I get ObjectId to be written as UUID in kafka? Mongo Example Doc :
I am trying to insert documents to a collection based on a query So I wrote the query, and then for each, How do I read info from the "doc" result document from
I'm trying to deploy a replica database onto one server with different port and connect with it. Everything is ok if I just use single ServerAddress and connect
Say I have an object with field state, I want to update this field, while keeping the previous value of state in previous_state field. First, I have tried to ma
I was using mongo in dev just fine, when deploying the app into test env I got this error when objects are saved in the application cannot use 'j' option when
How would I find duplicate fields in a mongo collection. I'd like to check if any of the "name" fields are duplicates. { "name" : "ksqn291", "__v" : 0
I am using Compose Transporter to sync data from DocumentDB to ElasticSearch instance in AWS. After one time sync, I added following collection_filters in pipel
I want to copy a collection within the same database and give it a different name - basically take a snapshot. What's the best way to do this? Is there a comm
I i am new to the Mongodb with Spring Boot.And i have MONGODB ATLAS URI Connection String mongodb://userName:<PASSWORD>@icarat-shard-00-00-7lopx.mongodb.
I have been trying to follow the instructions in the link below to try to add an automatically configured Embedded MongoDB Instance for Cucumber Integration tes
I have MongoDB documents structured like this: {_id: ObjectId("53d760721423030c7e14266f"), fruit: 'apple', vitamins: [ { _id: 1, name: 'B7',
I've tried this and it's not working. I have the following error with Mongodb + Atlas: MongoError: bad auth Authentication failed. at /Users/cyrus/Documen
I have a collection which contains documents with multiple arrays. These are generally quite large, but for purposes of explaining you can consider the followin