Class GraphQLController
java.lang.Object
graphql.spring.web.servlet.components.GraphQLController
@RestController
public class GraphQLController
extends java.lang.Object
-
Constructor Summary
Constructors Constructor Description GraphQLController() -
Method Summary
Modifier and Type Method Description java.lang.ObjectgraphqlGET(java.lang.String query, java.lang.String operationName, java.lang.String variablesJson, org.springframework.web.context.request.WebRequest webRequest)java.lang.ObjectgraphqlPOST(java.lang.String contentType, java.lang.String query, java.lang.String operationName, java.lang.String variablesJson, java.lang.String body, org.springframework.web.context.request.WebRequest webRequest)
-
Constructor Details
-
GraphQLController
public GraphQLController()
-
-
Method Details
-
graphqlPOST
@RequestMapping(value="${graphql.url:graphql}", method=POST, produces="application/json") public java.lang.Object graphqlPOST(@RequestHeader(value="Content-Type",required=false) java.lang.String contentType, @RequestParam(value="query",required=false) java.lang.String query, @RequestParam(value="operationName",required=false) java.lang.String operationName, @RequestParam(value="variables",required=false) java.lang.String variablesJson, @RequestBody(required=false) java.lang.String body, org.springframework.web.context.request.WebRequest webRequest) throws java.io.IOException- Throws:
java.io.IOException
-
graphqlGET
@RequestMapping(value="${graphql.url:graphql}", method=GET, produces="application/json", headers={"Connection!=upgrade","Connection!=Upgrade"}) public java.lang.Object graphqlGET(@RequestParam("query") java.lang.String query, @RequestParam(value="operationName",required=false) java.lang.String operationName, @RequestParam(value="variables",required=false) java.lang.String variablesJson, org.springframework.web.context.request.WebRequest webRequest)
-