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.server |
Server transports handling GraphQL requests over the HTTP, WebSocket, and RSocket.
|
org.springframework.graphql.server.support |
Support classes for Web transports.
|
org.springframework.graphql.support |
Support classes for Spring GraphQL.
|
Modifier and Type | Interface and Description |
---|---|
interface |
ExecutionGraphQlRequest
Implementation of
GraphQlRequest for request handling through GraphQL
Java with support for customizing the ExecutionInput passed into
GraphQL . |
Modifier and Type | Interface and Description |
---|---|
interface |
ClientGraphQlRequest
GraphQlRequest for client side use. |
Modifier and Type | Method and Description |
---|---|
GraphQlRequest |
GraphQlClientException.getRequest()
Return the request for which the error occurred.
|
Modifier and Type | Method and Description |
---|---|
reactor.core.publisher.Mono<GraphQlResponse> |
GraphQlTransport.execute(GraphQlRequest request)
Execute a request with a single response such as a "query" or "mutation".
|
reactor.core.publisher.Flux<GraphQlResponse> |
GraphQlTransport.executeSubscription(GraphQlRequest request)
Execute a "subscription" request with a stream of responses.
|
Constructor and Description |
---|
GraphQlClientException(String message,
Throwable cause,
GraphQlRequest request)
Constructor with a message, optional cause, and the request details.
|
GraphQlTransportException(String message,
Throwable cause,
GraphQlRequest request)
Constructor with a given message.
|
GraphQlTransportException(Throwable cause,
GraphQlRequest request)
Constructor with a default message.
|
SubscriptionErrorException(GraphQlRequest request,
List<ResponseError> errors)
Constructor with the request details and the errors listed in the payload
of the
"errors" message. |
WebSocketDisconnectedException(String closeStatusMessage,
GraphQlRequest request,
CloseStatus status)
Constructor with an explanation about the closure, along with the request
details and the status used to close the WebSocket session.
|
Modifier and Type | Class and Description |
---|---|
class |
RSocketGraphQlRequest
GraphQlRequest implementation for server
handling over RSocket. |
class |
WebGraphQlRequest
GraphQlRequest implementation for server
handling over HTTP or WebSocket. |
class |
WebSocketGraphQlRequest
WebGraphQlRequest extension for
server handling of GraphQL over WebSocket requests. |
Modifier and Type | Method and Description |
---|---|
static GraphQlWebSocketMessage |
GraphQlWebSocketMessage.subscribe(String id,
GraphQlRequest request)
Create a
"subscribe" client message. |
Modifier and Type | Class and Description |
---|---|
class |
DefaultExecutionGraphQlRequest
GraphQlRequest for server side handling, adding the transport (e.g. |
class |
DefaultGraphQlRequest
Default implementation of
GraphQlRequest . |