Skip to content

GraphQlClient#retrieve does not raise FieldAccessException for failures at a path nested below the target field #499

Closed
@michielwittkampf

Description

@michielwittkampf

I love that there is a Spring GraphQL library available. Thanks.

The javadoc for the retrieve method states:

throws FieldAccessException if the target field has any errors, including nested errors.

To me this suggests that a FieldAccessException is thrown if the results are partial. Yet if I test it, non is thrown. My suggestion would be to clarify this in the javadoc.

So the current only method to determine if a result is partial is probably to use the execute() method. Is that correct?

Background of my questions....

I retrieve a large data structure using graphql. When I receive a partial result in the GraphQlClient, I want to be able to easily determine they are partial, without checking all the data. In other words, check if any field errors are returned.

To make the retrieval of data easy I use the 'retrieve' method. But I see no way to check if the results are partial and what the returned errors are. Do I miss something?

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions