All Questions
9,487 questions
-4
votes
1
answer
103
views
Spring Boot 4.0.0 with a MongoDB database, the properties in application.properties are not working [duplicate]
The properties in the application.properties file are not working. The application connects to the test database instead of the one specified in the application.properties file, and it also connects ...
0
votes
1
answer
76
views
`Filters.eq(fieldName, value)` not actually creating `$eq` causes issues
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 {...
0
votes
1
answer
45
views
MongoTimeoutException in Testcontainers Integration Test : Open Liberty app attempts to connect to Kubernetes FQDNs instead of local alias
Title - MongoTimeoutException in Testcontainers Integration Test : Open Liberty app attempts to connect to Kubernetes FQDNs instead of local alias
I am writing integration tests for an Open Liberty-...
2
votes
1
answer
68
views
Is there an auto-increment feature or approach for Spring Boot MongoDB entities in a reactive save API?
I have a Spring Boot microservice that provides non-blocking APIs for creating and managing entities called Product. The services uses a MongoDB. For design purposes, each Product needs to have a ...
0
votes
1
answer
74
views
Why is my MongoDB aggregation pipeline significantly slower in PRD compared to DEV with similar data?
We're using a fairly complex MongoDB aggregation pipeline in a Java Spring Boot application with the MongoTemplate.aggregate API. The pipeline includes match, project, multiple lookups, unwind, group, ...
0
votes
0
answers
34
views
Intelij-IDEA can't evaluate on nested reactive publishers for MongoDB
For some reason, the IDEA's evaluation expression hangs when trying to call block() on some nested reactive MongoDB publisher (Mono/Flux).
FindPublisher<Registration> registrationPublisher = ...
0
votes
1
answer
94
views
Liquibase is not starting up when running Spring Boot project with MongoDB Liquibase plugin
When running my project, the MongoDB driver is connected successfully to the MongoDB cluster. However, I see nowhere that Liquibase starts up in the logs. No Liquibase errors, warnings, logs, nothing ...
1
vote
1
answer
92
views
How to intercept a MongoRepository in spring-data-mongodb?
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 ...
0
votes
1
answer
144
views
HMAC keys in system.keys collection and HMAC key monitoring thread
In Mongodb PSSSA (1 primary, 3 secondary, 1 arbiter) deployments when 2 secondary DB’s go down and only PSA is present. when the primary mongo db is restart few times , all database queries start to ...
0
votes
0
answers
51
views
Fetch Record from MongoDB in descending order?
Not able to sort the documents in descending order on last updated time stamp if the documents having the January and February records. how to get the documents in descending order
Query query= new ...
1
vote
0
answers
79
views
Issues when checking documents in embedded test flapdoodle mongodb
I am developing a project and I am now creating junits for parts of my code where I use a mongo DB connection. On my actual DB it works fine but I am trying to set up an embedded DB to run my tests on ...
0
votes
1
answer
34
views
Database contains embedded objects, but MongoRepository returns empty List
@Document("scenarios")
public class Scenario {
@Id
private String id;
@Indexed(unique = true)
private String name;
private String description;
@JsonSerialize(using = ...
0
votes
1
answer
51
views
MongoDB Java Driver returns all documents instead of matching filter in Java Servlet
I'm building an Expense Tracker web app using Java Servlets and MongoDB. I want to filter expense documents based on user and category (e.g., user: "chir", category: "education").
...
0
votes
1
answer
47
views
Spring Boot @Reference annotation not saving the embedded class data in mongo when unique Index for that embedded doument is used
I am trying to save a mongo document, that document also has a embedded document, we are using @Reference annotation to avoid embedded document's unique constraint being reflected on the main document,...
1
vote
1
answer
49
views
SpringBoot call default save from implementation repository
How can I call a default interface method from an implementation class?
@Repository
public class FileInfoRepoImpl implements FileInfoRepo {
@Autowired
MongoTemplate mongoTemplate;
...