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 SummaryConstructors
- 
Method SummaryModifier 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.@Nullable StringReturn the name of the operation in thedocumentto execute, if the document contains multiple operations.@Nullable StringgetQuery()Return values for variables defined by the operation.voidsetExtensions(Map<String, Object> extensions) voidsetOperationName(@Nullable String operationName) voidvoidsetVariables(Map<String, Object> variables) toMap()
- 
Constructor Details- 
SerializableGraphQlRequestpublic SerializableGraphQlRequest()
 
- 
- 
Method Details- 
setQuery
- 
getQuery
- 
setOperationName
- 
getOperationNameDescription copied from interface:GraphQlRequestReturn the name of the operation in thedocumentto execute, if the document contains multiple operations.- Specified by:
- getOperationNamein interface- GraphQlRequest
 
- 
setVariables
- 
getVariablesDescription copied from interface:GraphQlRequestReturn values for variables defined by the operation.- Specified by:
- getVariablesin interface- GraphQlRequest
 
- 
setExtensions
- 
getExtensionsDescription copied from interface:GraphQlRequestReturn implementor specific, protocol extensions, if any.- Specified by:
- getExtensionsin interface- GraphQlRequest
 
- 
getDocumentDescription copied from interface:GraphQlRequestReturn the GraphQL document which is the textual representation of an operation (or operations) to perform, including any selection sets and fragments.- Specified by:
- getDocumentin interface- GraphQlRequest
 
- 
toMapDescription copied from interface:GraphQlRequestConvert the request to aMapas defined in GraphQL over HTTP and GraphQL over WebSocket.Key Value query documentoperationName operationNamevariables variables- Specified by:
- toMapin interface- GraphQlRequest
 
 
-