I have a problem which has me stumped. Hoping someone can help me here. So I'm sadly in the position of having a micro-service which for the moment n ...
I have a problem which has me stumped. Hoping someone can help me here. So I'm sadly in the position of having a micro-service which for the moment n ...
I'm trying to insert a few million documents into MongoDB in one operation. Using MongoCollection.insertMany does not work for me because it takes a L ...
Does mongo java driver Aggregates has any method to add fields with values resolved from index of array operator ? Example :: Student 1: Name grad ...
I have the below data, and I want to filter the data for _id = "63283dd5777142017baa763b" and subCategory._id = "63283e25777142017baa7641" Using th ...
I am experimenting with Java and MongoDB and I am making a lookup aggregation. I noticed that when I perform a lookup the document returned contains t ...
I have code in Java that performs an aggregation pipeline roughly: List<Bson> aggUpdate = Arrays.asList( match(...), project(...), loo ...
I want to push the previous state (if the values changed) during an upsert into an array history (atomar) but no matter what I try, I can't find a cle ...
I'm trying to use POJOs to write data to MongoDB, but I can't seem to get it working. I have a lot of different data structures because I'm storing va ...
I have java application based on mongo server 4.2 and component versions are as follows I updated spring boot to 2.5.8 hence made few changes to up ...
Can't find an answer on stackOverflow, nor in any documentation, I have the following change stream code(listen to a DB not a specific collection) Mo ...
Using MongoDB driver 4.1.0 (and quarkus 1.1.1), I have an entity with a composite _id: (where a is actually an ObjectId hex string) After saving t ...
I am setting the mongo logger as below When I run the query using java driver in Micronuat application But if I copy this command and try to run ...
I am trying to retrieve values of _id for inserted documents after successful InsertMany operation. To achieve this I am using InsertManyResult.getIns ...
I am very new to MongoDB. Trying to understand the best option to perform Bulk Write in MongoDB. I want to periodically refresh my Application collect ...
We use oplog collection(that is present in local database) in our code to check if an event happens on a specific db and fire an event in our code.But ...
I’m attempting to build my own application and backend API to further my understanding of the Mongo Java driver after completing the M220J course, but ...
I am trying to get result of this MongoDB query on java. The query works perfectly fine and it is not showing anything when there is no data. But, ...
I need some help with a project I am planing to do. At this stage I am trying to learn using NoSQL Databases in Java. I've got a few nested documents ...
E.g. I have such documents in the collection: I need to update the collection from, let's say, CSV file by modifying or removing values column and ...
FindOneAndUpdate picks documents sequentially. Is there a way to pick a random document matching our query and update it atomically? ...