spring-data-mongodb icon indicating copy to clipboard operation
spring-data-mongodb copied to clipboard

Could I ask why ReactiveSpringDataMongodbQuery is private?

Open kakao-yes-chicken opened this issue 2 years ago • 2 comments

Could I ask why ReactiveSpringDataMongodbQuery is private? I want to use it like below. Flux<Person> result = new ReactiveSpringDataMongodbQuery<>(operations, Person.class).where() .join(person.coworker, QUser.user).on(QUser.user.username.eq("user-2")).fetch();

kakao-yes-chicken avatar Aug 12 '22 04:08 kakao-yes-chicken

This is because we do not want it to be used by the application code directly. What's your motivation, why do you want to use ReactiveSpringDataMongodbQuery?

mp911de avatar Aug 15 '22 09:08 mp911de

I am sorry. I am not familiar with spring-data-mongodb. I want to make complex query using reactivemongodb and querydsl. Which method should be used instead of this code?

kakao-yes-chicken avatar Aug 18 '22 05:08 kakao-yes-chicken

We currently only provide Querydsl usage if you use Spring Data repositories. We do not yet support (see #2994) Querydsl usage with MongoOperations/ReactiveMongoOperations only.

mp911de avatar Oct 18 '22 08:10 mp911de