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
Constructors -
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 thedocumentto execute, if the document contains multiple operations.getQuery()Return values for variable defined by the operation.voidsetExtensions(Map<String, Object> extensions) voidsetOperationName(String operationName) voidvoidsetVariables(Map<String, Object> variables) toMap()
-
Constructor Details
-
SerializableGraphQlRequest
public SerializableGraphQlRequest()
-
-
Method Details
-
setQuery
-
getQuery
-
setOperationName
-
getOperationName
Description copied from interface:GraphQlRequestReturn the name of the operation in thedocumentto execute, if the document contains multiple operations.- Specified by:
getOperationNamein interfaceGraphQlRequest
-
setVariables
-
getVariables
Description copied from interface:GraphQlRequestReturn values for variable defined by the operation.- Specified by:
getVariablesin interfaceGraphQlRequest
-
setExtensions
-
getExtensions
Description copied from interface:GraphQlRequestReturn implementor specific, protocol extensions, if any.- Specified by:
getExtensionsin interfaceGraphQlRequest
-
getDocument
Description 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 interfaceGraphQlRequest
-
toMap
Description 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 interfaceGraphQlRequest
-