public interface GraphQlRequest
document
, operationName
, and variables
.
The request can be turned to a Map via toMap()
and to be
submitted as JSON over HTTP or WebSocket.
Modifier and Type | Method and Description |
---|---|
String |
getDocument()
Return the GraphQL document which is the textual representation of an
operation (or operations) to perform, including any selection sets and
fragments.
|
Map<String,Object> |
getExtensions()
Return implementor specific, protocol extensions, if any.
|
String |
getOperationName()
Return the name of the operation in the
document
to execute, if the document contains multiple operations. |
Map<String,Object> |
getVariables()
Return values for variable defined by the operation.
|
Map<String,Object> |
toMap()
Convert the request to a
Map as defined in
GraphQL over HTTP and
GraphQL over WebSocket:
KeyValue
querydocument
operationNameoperationName
variablesvariables
|
String getDocument()
@Nullable String getOperationName()
document
to execute, if the document contains multiple operations.Map<String,Object> getExtensions()
Map<String,Object> toMap()
Map
as defined in
GraphQL over HTTP and
GraphQL over WebSocket:
Key | Value |
---|---|
query | document |
operationName | operationName |
variables | variables |