Package | Description |
---|---|
org.springframework.graphql |
Top level abstractions for processing GraphQL requests.
|
org.springframework.graphql.client |
This package contains a
GraphQlClient
along with HTTP and WebSocket extensions. |
org.springframework.graphql.support |
Support classes for Spring GraphQL.
|
org.springframework.graphql.test.tester |
GraphQL client testing support.
|
Modifier and Type | Method and Description |
---|---|
ResponseError |
ResponseField.getError()
Return the error that provides the reason for a failed field.
|
Modifier and Type | Method and Description |
---|---|
List<ResponseError> |
GraphQlResponse.getErrors()
Return errors included in the response.
|
List<ResponseError> |
ResponseField.getErrors()
Return all field errors including errors above, at, and below this field.
|
Modifier and Type | Method and Description |
---|---|
List<ResponseError> |
SubscriptionErrorException.getErrors()
Return the errors contained in the GraphQL over WebSocket "errors" message.
|
Constructor and Description |
---|
SubscriptionErrorException(GraphQlRequest request,
List<ResponseError> errors)
Constructor with the request details and the errors listed in the payload
of the
"errors" message. |
Modifier and Type | Method and Description |
---|---|
List<ResponseError> |
DefaultExecutionGraphQlResponse.getErrors() |
Modifier and Type | Method and Description |
---|---|
B |
AbstractGraphQlTesterBuilder.errorFilter(Predicate<ResponseError> predicate) |
B |
GraphQlTester.Builder.errorFilter(Predicate<ResponseError> predicate)
Configure a global
filter that
applies to all requests. |
GraphQlTester.Errors |
GraphQlTester.Errors.expect(Predicate<ResponseError> errorPredicate)
Use this to declare errors that are expected.
|
GraphQlTester.Errors |
GraphQlTester.Errors.filter(Predicate<ResponseError> errorPredicate)
Use this to filter out errors that are expected and can be ignored.
|
GraphQlTester.Traversable |
GraphQlTester.Errors.satisfy(Consumer<List<ResponseError>> errorsConsumer)
Inspect errors in
the response, if any.
|