Class SerializableGraphQlRequest
java.lang.Object
org.springframework.graphql.server.support.SerializableGraphQlRequest
- All Implemented Interfaces:
GraphQlRequest
GraphQlRequest
for deserialization from a request.- Since:
- 1.2.5
- Author:
- Rossen Stoyanchev
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturn the GraphQL document which is the textual representation of an operation (or operations) to perform, including any selection sets and fragments.Return implementor specific, protocol extensions, if any.Return the name of the operation in thedocument
to execute, if the document contains multiple operations.getQuery()
Return values for variable defined by the operation.void
setExtensions
(Map<String, Object> extensions) void
setOperationName
(String operationName) void
void
setVariables
(Map<String, Object> variables) toMap()
-
Constructor Details
-
SerializableGraphQlRequest
public SerializableGraphQlRequest()
-
-
Method Details
-
setQuery
-
getQuery
-
setOperationName
-
getOperationName
Description copied from interface:GraphQlRequest
Return the name of the operation in thedocument
to execute, if the document contains multiple operations.- Specified by:
getOperationName
in interfaceGraphQlRequest
-
setVariables
-
getVariables
Description copied from interface:GraphQlRequest
Return values for variable defined by the operation.- Specified by:
getVariables
in interfaceGraphQlRequest
-
setExtensions
-
getExtensions
Description copied from interface:GraphQlRequest
Return implementor specific, protocol extensions, if any.- Specified by:
getExtensions
in interfaceGraphQlRequest
-
getDocument
Description copied from interface:GraphQlRequest
Return the GraphQL document which is the textual representation of an operation (or operations) to perform, including any selection sets and fragments.- Specified by:
getDocument
in interfaceGraphQlRequest
-
toMap
Description copied from interface:GraphQlRequest
Convert the request to aMap
as defined in GraphQL over HTTP and GraphQL over WebSocket.Key Value query document
operationName operationName
variables variables
- Specified by:
toMap
in interfaceGraphQlRequest
-