Skip to main content
0 votes
1 answer
67 views

I'm not sure if this is a MongoDB issue, an issue with the mongo-java-driver or if I'm doing something worng. The issue is that MongoDB can behave differently in case there is a $eq operator or if a {...
the's user avatar
  • 361
1 vote
1 answer
119 views

I know two separate APIs in MongoTemplate, if you want to perform an .aggregate: By invoking directly functions in MongoTemplate, like MongoTemplate.aggregate() By using an intermediate getCollection(...
Andrei's user avatar
  • 1,447
0 votes
0 answers
44 views

I just started using spring data mongodb aggregation query. fun findRoot(): MarkdownMongoDocument? { val aggregation = Aggregation.newAggregation( MarkdownMongoDocument::class.java, ...
SageJustus's user avatar
  • 1,212
0 votes
1 answer
96 views

MongoDB validation schema: bsonType: "object", required: ["createdAt"], properties: { createdAt: { bsonType: "date" } } Java class: @Getter @Setter @...
Politechniczny's user avatar
-1 votes
1 answer
61 views

How to only get the last item of an array in MongoDB Document using MongoDB Java or Kotlin driver Without loading the whole document or the list which can be very long Let's say we have this data ...
Eel's user avatar
  • 1,469
1 vote
0 answers
529 views

I am currently utilizing Spring Boot 2.7.18 alongside the MongoDB sync driver. Within my codebase, there exists a transactional method called "updateCertCacheCollectionOld." This method is ...
user12724275's user avatar
0 votes
0 answers
122 views

Trying to connect to ec2-hosted mongodb replicaSet from my local machine. I am able to connect successfully via MongoDB Compass, but getting SSLException error when doing via debzium-mongo-source-...
Ritik's user avatar
  • 61
0 votes
1 answer
48 views

This Java statement Aggregation.group("name").sum("1").as("count") generates {"$group" : { "_id": "$name", "count": { "$sum&...
Martin's user avatar
  • 1,550
0 votes
1 answer
1k views

I'm trying to implement mu custom converter to be used in a specific find méthode. So i implemented another mongoConfig with a custom mongoTemplate uses my custom converter as bellow. Here my ...
BARHOUMI's user avatar
  • 214
1 vote
1 answer
143 views

I've created a collection (in Java) with storage engine options where the block compressor should be zstd. How can I verify that .storageEngineOptions() worked as expected? Is it possible through ...
Jonas Byström's user avatar
0 votes
1 answer
179 views

I am trying to get valid records from mongodb using Spring - mongodb - java driver my question is around the creation of the Bson filter I am looking for matching records that match some filter (...
JavaSheriff's user avatar
  • 7,741
0 votes
1 answer
198 views

Hi everyone I have a collection of documents like bellow. I want to directly get "rights" from roles array for params: _id, groups._id, roles._id using java mongo driver. { "_id":...
Bojan Stojković's user avatar
0 votes
1 answer
478 views

I am in the midst of upgrading the Spring version of one of our projects. As a result of this, the MongoDB library also had to be upgraded. I am not able to track what the previous version of the ...
waffledood's user avatar
0 votes
0 answers
66 views

Consider a MongoDB collection with documents as follows: [{ "_id": "123", "name": "Bob", "age": 23, "properties": ["a&...
Paul Jose's user avatar
0 votes
1 answer
198 views

Here is my Java code. skip missing some records. also order is not working. AggregateIterable<Document> propertiesDoc = collection.aggregate(Arrays.asList( Aggregates.match(...
Lavan Giri's user avatar

15 30 50 per page
1
2 3 4 5
70