Skip to main content
AI Assist is now on Stack Overflow. Start a chat to get instant answers from across the network. Sign up to save and share your chats.
Filter by
Sorted by
Tagged with
0 votes
0 answers
33 views

I have a spring boot application deployed on ECS running on 2 tasks. It is fetching username and password from AWS Secrets Manager using AWS SDK and connecting to AWS DocumentDB using spring data ...
saichand vemuri's user avatar
0 votes
1 answer
117 views

I am trying to ditch mongodb and use ferretdb as a drop in replacement. Now I have tests that were working with testcontainers as testcontainers has first class support for mongodb. I have changed the ...
user3465651's user avatar
0 votes
0 answers
20 views

When I try to do the following I get an error. Would like to know if it's possible to access Java system properties or alternatively environment variables exclusively in the @Document annotation to ...
awgtek's user avatar
  • 1,899
0 votes
1 answer
145 views

I am trying to serialize a model with a LocalDate into a BsonDateTime using Spring Data Mongo. This MongoDB guide for Kotlin usage says that, with the @Serializable and @Contextual annotations, ...
geppettodivacin's user avatar
0 votes
1 answer
51 views

I have a Base Entity class which all my Spring Data MongoDB classes extend, I want to have a few basic fields (check below) which need to be auto-set/auto-updated, what's the cleanest way to achieve ...
SRI HARSHA S V S's user avatar
1 vote
1 answer
92 views

I use spring-data-mongodb in my project. I have some code like that: @Repository public interface NameRepository extends MongoRepository<Name, String> { List<Name> findByStatus(String ...
victorli's user avatar
0 votes
0 answers
74 views

I have spring app which uses mongoRepository. I want to have an integration to test my repository by using @DataMongoTest. For some reason my test tries to connect localhost for mongo and gets timeout....
user1474111's user avatar
  • 1,536
2 votes
1 answer
110 views

I get the following error when using a MongoDB transaction inside @KafkaListener method. The repository performs an unordered bulk operation (that may fail, but I'm intrested in knowing which ...
Riccardo's user avatar
-1 votes
1 answer
53 views

I’m encountering some issues when querying nested MongoDB documents using spring-boot-starter-data-mongodb. After checking, I can confirm that the valid documents are present in MongoDB. Here's an ...
user3187960's user avatar
0 votes
0 answers
24 views

I am using Spring Data Mongo and a Mongo DB, I have to join a field below, please share best approach. I have tried aggregate approach but its giving performance issue. Collection A { "name1"...
Async Code's user avatar
0 votes
0 answers
29 views

Using mongoTemplate in spring-data-mongodb (3.4.18), I can do mongoTemplate .update(MyClass.class) .matching(query(where(...))) .apply(new Update() .set(...) .setOnInsert(.....
tkruse's user avatar
  • 10.8k
1 vote
1 answer
274 views

I'm attempting to write ITs for a simple reactive service, but the test fails when attempt to obtain the test container (MongoDB Atlas Local) connection. The error: Caused by: org.springframework....
John Manko's user avatar
  • 1,972
0 votes
1 answer
49 views

Mongo document has a field createdOn which stores ISODate i.e. java.util.Date in mongo document I am trying to get count on date range fields. When I give date range from and to from restclient I am ...
JPG's user avatar
  • 1,273
1 vote
1 answer
120 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
52 views

In a Spring Boot app which uses MongoDB, I have a repository that extends MongoRepository and adds custom methods. I need to write a method that updates the nested field balance.available incrementing ...
Gregorio Maclen's user avatar

15 30 50 per page
1
2 3 4 5
221