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.Object graphqlGET​(java.lang.String query, java.lang.String operationName, java.lang.String variablesJson, org.springframework.web.context.request.WebRequest webRequest)  
    java.lang.Object graphqlPOST​(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)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • 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)