Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
105 views

I need to iterate over a massive query result and perform some business logic on each entity. The database is connected with Spring Data Mongo Reactive so I get a Flux<Entity>. The simple ...
invalid's user avatar
  • 15
0 votes
0 answers
74 views

We had an application with spring boot 2 without problems. After upgrade it on spring boot 3 we have problem with connections to mongodb. Our checkedout connections piling up to maxPoolSize and then ...
pavel's user avatar
  • 21
1 vote
1 answer
518 views

Hello Spring community, I have a Spring Boot 3 application with a Mongo DB. I use Spring data mongo reactive to communicate with the database and that works great apart from this issue. I have a ...
invalid's user avatar
  • 15
3 votes
1 answer
45 views

I have documents in a collection such as : { "login":"xxx", "someAttribute":"someValue", "subDocs":[ { "data": "val1&...
pibou's user avatar
  • 51
2 votes
0 answers
220 views

In MyMongoConfig extends AbstractReactiveMongoConfiguration I created a bean when using version 3.2 of spring-data-mongodb: @Override public MongoMappingContext mongoMappingContext(...
Endre Moen's user avatar
2 votes
1 answer
677 views

Basically, I have a User collection that contains a @DbRef to UserPlot (plots) collection. Inside UserPlot, I also have a @DbRef to Plot (plot). My goal is to find all users and eagerly load plots to ...
SoT's user avatar
  • 1,267
1 vote
0 answers
157 views

I'm trying to do a convertion from String to Decimal128 in a @Query to perform a paging operation using the following snippet: public interface ExpenseCollectionRepository extends ...
Sergio Luigi Alves's user avatar
1 vote
2 answers
1k views

I would like your help. I'm working with Spring reactive (WebFlux) and mongoDB also reactive. In my model I have an association of two entities: User and Post. Modeling the problem, 1 User has a list ...
Alexandre's user avatar
0 votes
1 answer
495 views

I have a collections of documents, which have an inner array of objects with two fields: { "state" : [ { "date" : ISODate("2022-08-06T00:56:29.615Z&...
AxelUser's user avatar
  • 139
0 votes
0 answers
1k views

I am working on a spring boot project which uses spring data mongodb. Spring data mongodb auto creates the db and collection when it doesn't exists. I want to disable auto creation of db and ...
Amit Karn's user avatar
2 votes
1 answer
9k views

I'm using reactive mongodb within a spring boot application, but I get the errors bellow: org.springframework.data.mongodb.core.ReactiveMongoTemplate - Streaming aggregation: [{ "$match" : { ...
mr.Penguin's user avatar
  • 1,666
1 vote
0 answers
113 views

I want to know if it is possible to execute MergeOperation snippet: MergeOperation mergeOperation = Aggregation.merge() .intoCollection("someCollection") .on("_id") ...
Buckpo's user avatar
  • 23
2 votes
0 answers
891 views

Mongodb states that it is possible to put multiple conditions inside cond of filter. Like this: { $filter: { input: [ 1, "a", 2, null, 3.1, NumberLong(4), "5" ], as: &...
H4ds0n's user avatar
  • 23
0 votes
1 answer
232 views

we have a problem with the mongo java driver and the monitoring thread. We are running a 3 server replicaset and connect our spring boot microservices by using the hostnames. mongodb://<username>...
Kraennix's user avatar
1 vote
1 answer
877 views

I have the below query that runs fine in mongo shell. I have to use this from my spring boot java application. db.UserGames.aggregate([ { $match: {$and: [{timestamp: {$gte : ...
Ritika Agarwal's user avatar
0 votes
1 answer
653 views

I am merging records from two collections projects and card_types in an aggregation pipeline and then trying to remove the cardFields field of the merged record from the result. So the idea is that ...
Anadi Misra's user avatar
  • 2,113
1 vote
0 answers
231 views

I've a project based on a mongodb database and I need to accomplish the following description in a very optimized way. My database has a Document with another embedded documents and I need to apply ...
Miguel Andrade's user avatar
1 vote
1 answer
249 views

I'm trying to get the list of distinct items by a specific field (userId). Currently I'm using this kind of approach to get records from MongoDB using ReactiveCrudRepository. Additionally, I want this ...
Powsikan's user avatar
1 vote
0 answers
564 views

I am facing a "problem" with mongo reactive repositories. I am trying to use kotlin's coroutines and instead of writing fun declaration like this: fun findEntityById(id: String) : Mono<...
Barracuda's user avatar
  • 607
0 votes
1 answer
1k views

In short - i try to retrieve a sorted list of objects using both find with Query object and aggregation object. But... no luck - randomly ordered lists every time. I tried two options: @Component @...
Mike's user avatar
  • 63
1 vote
0 answers
865 views

In my app i want to combine 2 change streams to listen to changes to some filter object and to the inserts/deletes to the collection which is actually in question (to which i apply the filter residing ...
Mike's user avatar
  • 63
0 votes
1 answer
239 views

Please, give some hint regarding the following! Pre-requisites: Mongo cluster of replica-set type @EnableReactiveMongoRepositories is in place and all the repositories extend from ...
Mike's user avatar
  • 63
4 votes
1 answer
3k views

I configured a ReactiveSortingRepository to see the reactive capabilities on spring data rest, in the past I've mostly used PagingAndSortingRepository to expose resources as REST endpoints so wanted ...
Anadi Misra's user avatar
  • 2,113
0 votes
0 answers
260 views

I am doing a sample application and trying to use webflux with reactive mongo. I am getting below error while starting the application in Intellij required a bean of type 'com.sample....
vinilpj's user avatar
  • 178
6 votes
0 answers
320 views

Is it possible to perform MongoDB bulk operations (like update/upsert) using ReactiveMongoTemplate or spring-data-mongodb-reactive?
user16122055's user avatar