public static interface GraphQlClient.RetrieveSpec
Modifier and Type | Method and Description |
---|---|
<D> reactor.core.publisher.Mono<D> |
toEntity(Class<D> entityType)
Decode the field to an entity of the given type.
|
<D> reactor.core.publisher.Mono<D> |
toEntity(ParameterizedTypeReference<D> entityType)
Variant of
toEntity(Class) with a ParameterizedTypeReference . |
<D> reactor.core.publisher.Mono<List<D>> |
toEntityList(Class<D> elementType)
Decode the field to a list of entities with the given type.
|
<D> reactor.core.publisher.Mono<List<D>> |
toEntityList(ParameterizedTypeReference<D> elementType)
Variant of
toEntityList(Class) with ParameterizedTypeReference . |
<D> reactor.core.publisher.Mono<D> toEntity(Class<D> entityType)
entityType
- the type to convert toMono
with the decoded entity. Completes empty when
the field is null
without errors, or ends with
FieldAccessException
for an invalid response or a failed fieldGraphQlResponse.isValid()
,
ResponseField.getError()
<D> reactor.core.publisher.Mono<D> toEntity(ParameterizedTypeReference<D> entityType)
toEntity(Class)
with a ParameterizedTypeReference
.<D> reactor.core.publisher.Mono<List<D>> toEntityList(Class<D> elementType)
elementType
- the type of elements in the listMono
with a list of decoded entities, possibly an
empty list, or ends with FieldAccessException
if the target
field is not present or has no value.GraphQlResponse.isValid()
,
ResponseField.getError()
<D> reactor.core.publisher.Mono<List<D>> toEntityList(ParameterizedTypeReference<D> elementType)
toEntityList(Class)
with ParameterizedTypeReference
.