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. |
<P> QuerydslDataFetcher.ReactiveBuilder<T,P> |
projectAs(Class<P> projectionType)
Project results returned from the
ReactiveQuerydslPredicateExecutor
into the target projectionType. |
DataFetcher<reactor.core.publisher.Mono<R>> |
single()
Build a
DataFetcher to fetch single object instances}. |
QuerydslDataFetcher.ReactiveBuilder<T,R> |
sortBy(org.springframework.data.domain.Sort sort)
Apply a
Sort order. |
public <P> QuerydslDataFetcher.ReactiveBuilder<T,P> projectAs(Class<P> projectionType)
ReactiveQuerydslPredicateExecutor
into the target projectionType. Projection types can be
either interfaces with property getters to expose or regular classes
outside the entity type hierarchy for DTO projections.projectionType - projection typeQuerydslDataFetcher.Builder instance with all previously
configured options and projectionType appliedpublic QuerydslDataFetcher.ReactiveBuilder<T,R> sortBy(org.springframework.data.domain.Sort sort)
Sort order.sort - the default sort orderQuerydslDataFetcher.Builder instance with all previously configured
options and Sort appliedpublic QuerydslDataFetcher.ReactiveBuilder<T,R> customizer(org.springframework.data.querydsl.binding.QuerydslBinderCustomizer<? extends com.querydsl.core.types.EntityPath<T>> customizer)
QuerydslBinderCustomizer.
If a Querydsl repository implements QuerydslBinderCustomizer
itself, this is automatically detected and applied during
auto-registration.
For manual registration, you will need to use this method to apply it.
customizer - to customize the GraphQL query to Querydsl
Predicate binding withQuerydslDataFetcher.Builder instance with all previously configured
options and QuerydslBinderCustomizer appliedpublic DataFetcher<reactor.core.publisher.Mono<R>> single()
DataFetcher to fetch single object instances}.public DataFetcher<reactor.core.publisher.Flux<R>> many()
DataFetcher to fetch many object instances.