All Questions
44
questions
0
votes
0
answers
44
views
Is it possible to run reactive mongo driver without Spring boot and Spring data?
So, we're using spring without spring boot for our project and got to the point where we need to integrate it with mongodb via reactor. The problem is when we start the app it connects to db but ...
1
vote
2
answers
78
views
Monogodb: update element of array of objects with criterias
I have this document:
{
"id" : "001",
"items" : {
"persons" : [
{
"city" : "London",
"color&...
2
votes
2
answers
680
views
MongoDB query using $in with empty specified array
We are using MongoDB for a POC and I am stuck with below problem.
We are building a page to show filter options for data. If user selects any filter, then data needs to be filtered as per selection. ...
1
vote
1
answer
83
views
java.lang.NoClassDefFoundError: reactivemongo/core/errors/ConnectionException
OS: Ubuntu 22.04.1 LTS
java: openjdk-18.0.2.1
I got the folowing error when trying to connect to a MongoDB database from ReactiveMongo API (reactivemongo_3-1.1.0-noshaded-RC6):
java.lang....
0
votes
1
answer
437
views
Finding exact match in MongoDB query where search criteria is applied to the object level in the list
I have a requirement of fetching data from mongodb and being done using Java Spring Reactive Mongodb library. I am using the following code for this:
Criteria criteria = Criteria.where(QUERYFIELD1).in(...
2
votes
1
answer
2k
views
Auditing (@CreatedDate) does not work for WebFlux Spring Boot with reactive MongoDB
Does WebFlux Spring Boot with reactive MongoDB supports Auditing?
I tried to use @CreatedDate and it did not work for me.
Here is my configuration:
@Configuration
@EnableReactiveMongoRepositories
@...
3
votes
2
answers
3k
views
WebFlux Spring Boot @Transactional with reactive MongoDB
Does WebFlux Spring Boot @Transactional annotation work with reactive MongoDB?
I use WebFlux Spring Boot with reactive MongoDB like:
id 'org.springframework.boot' version '2.6.7'
...
...
0
votes
1
answer
1k
views
Java Spring Reactive, returning one Mono<..> from many multiple requests
[Java, Spring Reactive, MongoDB]
I'm currently trying to learn Reactive programming by doing and I found a challenge.
I have db object CategoryDB which looks like this:
@NoArgsConstructor
@Getter
@...
4
votes
2
answers
2k
views
mongodb reactive spring boot DBRef resolution is not supported
I wrote this programe spring boot mongodb reactive
@SpringBootApplication
public class ReactitveMongoDbApplication {
public static void main(String[] args) {
SpringApplication.run(...
-1
votes
1
answer
3k
views
How to initialize an empty Mono Class object in reactive programming?
I am learning reactive and I wanted to know how to initialize a Mono object, like in Java when:User usr=new User().
How to create a Mono object of this similar class?
0
votes
1
answer
184
views
Save Related Documents In Mongo Reactive But Not In The Same Collection
I would like to know, how to save related documents in reactive mongo ?. Because I find a code that attempts to do the magic... But when it should save the related document in another collection, it ...
0
votes
1
answer
147
views
Mongo Template Criteria query for addition of two column
I want to write one query where lastReceivedTime(time in epoch) plus some duration(some millisecond like 60000) should greater than current time
query.addCriteria(
Criteria.where(HandlerConstant....
0
votes
1
answer
736
views
Quarkus Mongodb change stream NullPointerException in native build
I'm building a quarkus app tha use the mongodb change streams functionality with the reactive client.
If I start the application locally from Intellij everything works fine but when I build the native ...
0
votes
1
answer
342
views
Setting one mono within another using webflux
I am retrieving a publisher Mono<ProductOrder> from mongo db
I have another publisher Mono<CommandResponse>
I want to set ProductOrder object into CommandResponse as it is a part of that ...
1
vote
0
answers
594
views
How to correctly implement onBeforeDelete method in AbstractMongoEventListener using reactive mongo?
I'm novice in reactive programming and now i trying to rewrite my test spring boot web application on reactive stack(web flux, reactor, reactive mongo).
My app it is simple library with 3 type of ...