T - domain typeR - result typepublic static class QuerydslDataFetcher.ReactiveBuilder<T,R> extends Object
DataFetcher. Note that builder
instances are immutable and return a new instance of the builder when
calling configuration methods.| Modifier and Type | Method and Description |
|---|---|
QuerydslDataFetcher.ReactiveBuilder<T,R> |
customizer(org.springframework.data.querydsl.binding.QuerydslBinderCustomizer<? extends com.querydsl.core.types.EntityPath<T>> customizer)
Apply a
QuerydslBinderCustomizer. |
DataFetcher<reactor.core.publisher.Flux<R>> |
many()
Build a
DataFetcher to fetch many object instances through Flux. |
<P> QuerydslDataFetcher.ReactiveBuilder<T,P> |
projectAs(Class<P> projectionType)
Project results returned from the
QuerydslPredicateExecutor
into the target projectionType. |
DataFetcher<reactor.core.publisher.Mono<R>> |
single()
Build a
DataFetcher to fetch single object instances through Mono. |
public <P> QuerydslDataFetcher.ReactiveBuilder<T,P> projectAs(Class<P> projectionType)
QuerydslPredicateExecutor
into the target projectionType. Projection types can be
either interfaces declaring getters for properties to expose or
regular classes outside the entity type hierarchy for
DTO projection.projectionType - projection typeQuerydslDataFetcher.Builder instance with all previously
configured options and projectionType appliedpublic QuerydslDataFetcher.ReactiveBuilder<T,R> customizer(org.springframework.data.querydsl.binding.QuerydslBinderCustomizer<? extends com.querydsl.core.types.EntityPath<T>> customizer)
QuerydslBinderCustomizer.customizer - the customizer to customize bindings for the
actual queryQuerydslDataFetcher.Builder instance with all previously configured
options and QuerydslBinderCustomizer appliedpublic DataFetcher<reactor.core.publisher.Mono<R>> single()
DataFetcher to fetch single object instances through Mono.DataFetcher based on Querydsl to fetch one objectpublic DataFetcher<reactor.core.publisher.Flux<R>> many()
DataFetcher to fetch many object instances through Flux.DataFetcher based on Querydsl to fetch many objects