T
- domain typeR
- result typepublic static class QueryByExampleDataFetcher.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 |
---|---|
DataFetcher<reactor.core.publisher.Flux<R>> |
many()
Build a
DataFetcher to fetch many object instances. |
<P> QueryByExampleDataFetcher.ReactiveBuilder<T,P> |
projectAs(Class<P> projectionType)
Project results returned from the
ReactiveQueryByExampleExecutor
into the target projectionType . |
DataFetcher<reactor.core.publisher.Mono<R>> |
single()
Build a
DataFetcher to fetch single object instances. |
QueryByExampleDataFetcher.ReactiveBuilder<T,R> |
sortBy(org.springframework.data.domain.Sort sort)
Apply a
Sort order. |
public <P> QueryByExampleDataFetcher.ReactiveBuilder<T,P> projectAs(Class<P> projectionType)
ReactiveQueryByExampleExecutor
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 typeQueryByExampleDataFetcher.ReactiveBuilder
instance with all previously
configured options and projectionType
appliedpublic QueryByExampleDataFetcher.ReactiveBuilder<T,R> sortBy(org.springframework.data.domain.Sort sort)
Sort
order.sort
- the default sort orderQueryByExampleDataFetcher.ReactiveBuilder
instance with all previously configured
options and Sort
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.