Interface GraphQlClient.RetrieveSpec
- Enclosing interface:
- GraphQlClient
public static interface GraphQlClient.RetrieveSpec
Declares options to decode a field in a single response.
- Since:
- 1.0.0
- Author:
- Rossen Stoyanchev
- 
Method SummaryModifier and TypeMethodDescription<D> reactor.core.publisher.Mono<D> Decode the field to an entity of the given type.<D> reactor.core.publisher.Mono<D> toEntity(ParameterizedTypeReference<D> entityType) Variant oftoEntity(Class)with aParameterizedTypeReference.<D> reactor.core.publisher.Mono<List<D>> toEntityList(Class<D> elementType) Variant oftoEntity(Class)to decode to a List of entities.<D> reactor.core.publisher.Mono<List<D>> toEntityList(ParameterizedTypeReference<D> elementType) Variant oftoEntityList(Class)with aParameterizedTypeReference.
- 
Method Details- 
toEntityDecode the field to an entity of the given type.- Type Parameters:
- D- the type to convert to
- Parameters:
- entityType- the type to convert to
- Returns:
- Monowith the decoded entity; completes with- FieldAccessExceptionin case of- field errorsor an- invalidresponse; completes empty if the field is- nullbut has no errors.
- See Also:
 
- 
toEntityVariant oftoEntity(Class)with aParameterizedTypeReference.- Type Parameters:
- D- the entity type
- Parameters:
- entityType- the type to convert to
 
- 
toEntityListVariant oftoEntity(Class)to decode to a List of entities.- Type Parameters:
- D- the type to convert to
- Parameters:
- elementType- the type of elements in the list
 
- 
toEntityListVariant oftoEntityList(Class)with aParameterizedTypeReference.- Type Parameters:
- D- the type to convert to
- Parameters:
- elementType- the type of elements in the list
 
 
-