Questions tagged [reactive-mongo-java]
34 questions
0
votes
0 answers
MongoDB Sort by value in embedded document array using reactiveMongoTemplate
I have MongoDB Collection of documents as below format.
`
{
"_id" : "...",
"parameters" : [
{
"name" : "ApplicationId",
"value" :" App1"
},
{
"name" : "policyId",
…
0
votes
1 answer
MongoDb async/insertData, sync/getData: using ReactiveMongoTemplate
I have a situation where I need to insert in async and get data (obviously it should be in sync) currenlty am using ReactiveMongoTemplate
//insert async
reactiveMongoTemplate.save(MyObject)
// get data in…

Mallikarjun
- 25
- 6
0
votes
0 answers
How to change default deserialization behavior of reactiveMongoRepository.find() methods?
Is there any way we can intercept existing function call(like reactiveMongoRepository.find()) to avoid the serialization issue when there is unknown property or filed exist?
In mongodb collection I have a feild called Status contains 3 values…

Jince Mon
- 1
- 1
0
votes
1 answer
Why filtering does not work with Spring Boot and MongoDB
Why filtering by import_created_at does not work?
I have a Spring Boot Application and MongoDB as database.
I have Mongo collection items and 2 documents there:
{
"_id": {
"product_id": "11",
"contract_id": {
"$numberLong": "1"
…

Anni Benni
- 55
- 1
- 5
0
votes
1 answer
ReactiveMongoRepository insert return converter
Insertion of an entity with an Instant value, using ReactiveMongoRepository:
MyEntity inserted = myReactiveMongoRepository.insert(entity).block();
System.out.println("inserted.getSent() = " + inserted.getSent());
// inserted.getSent() =…

István Békési
- 993
- 4
- 16
- 27
0
votes
0 answers
Why MongoDB Atlas does not work with reactive Spring Data and Spring Boot?
I'm developing an easy sample application. One component is a gateway service using Spring Boot and Reactive Spring Data for Mongo, because that's where I want to store user and login informations.
For testing out different solutions, I wanted to…

bkk
- 307
- 5
- 22
0
votes
1 answer
org/bson/internal/CodecRegistryHelper with Micronaut data MongoDB
Using the latest Micronaut 3.4.1 with micronaut data and MongoDB. Keep getting the exception as java.lang.NoClassDefFoundError: org/bson/internal/CodecRegistryHelper
Gradle Dependencies
dependencies {
…

San Jaisy
- 15,327
- 34
- 171
- 290
0
votes
1 answer
How Can I do “the same UPDATE-METHOD” updates 02 Collections “at the same time” using Spring Data ReactiveMongoTemplate?
1) Problem Description:
I am using a Reactive Spring-Data + Spring WebFlux + MongoDb + ReactiveMongoTemplate;
I have 02 Collections: Task and Project
2) My Goal is:
Using only “one update method”
that updates the 02 documents inside the 02…

GtdDev
- 748
- 6
- 14
0
votes
1 answer
In Spring WebFlux, How to chaining methods from multiple services/repo, in order to 'delete' elements in multiples DB-Collections'?
1) Contextualization about the problem:
I am trying 'delete' items in 03 different DB-Collections(Reactive MongoDB), using 03 different services/repo (userService + postService + userRepo);
My Goal is DELETE an object (in each collection)…

GtdDev
- 748
- 6
- 14
0
votes
1 answer
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 app and run it inside a docker image I receive…

Andrea
- 75
- 6
0
votes
1 answer
Problem Parsing request body of type json, containing a list of string to Flux of string in Spring reactive
I have a DTO as below:
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import reactor.core.publisher.Flux;
@Data
@NoArgsConstructor
@AllArgsConstructor
public class InternetPackageDto {
private String…

zambliner
- 436
- 2
- 6
- 21
0
votes
1 answer
Springboot ignores the MongoDB atlas uri, trying to connect hosts=[127.0.0.1:27017]
I have been working in a application with Spring webflux and reactive mongo DB. in there i used mongo DB atlas as the database and it worked fine.
Recently i had to introduce mongo custom conversion to handle the Zoned Date Time…

keth
- 793
- 2
- 11
- 36
0
votes
0 answers
Filtering on a Mongo DB capped Collection using Flux
I have defined my capped collection as below.
@Document("#{@environment.getProperty('customProperties.cappedCollection')}")
@Data
@NoArgsConstructor
@Builder
@AllArgsConstructor
public class ActiveRideCapped {
@Id
private String id;
…

Yogesh Pitale
- 115
- 1
- 1
- 11
0
votes
0 answers
SpringBoot test: NoSuchBeanDefinitionException for ReactiveMongoRepository
I'm trying to test service-class of reactive mongoDB application, created on SpringBoot.
I don't use embedded mongodb! I'm only trying to mock repository
This is reactive mongo repository:
package com.spb.budget_server.repository;
public interface…

Jelly
- 972
- 1
- 17
- 40
0
votes
1 answer
Mongo bulk replace with 200k+ operations
E.g. I have such documents in the collection:
{
"key": "key1",
"time": 1000,
"values": [] // this one is optional
}
I need to update the collection from, let's say, CSV file by modifying or removing values column and where key & time…

Andrii Abramov
- 10,019
- 9
- 74
- 96