Class GraphQLRequest

java.lang.Object
org.restheart.exchange.Exchange<T>
org.restheart.exchange.Request<T>
org.restheart.exchange.ServiceRequest<com.google.gson.JsonElement>
org.restheart.graphql.exchange.GraphQLRequest

public class GraphQLRequest extends ServiceRequest<com.google.gson.JsonElement>
  • Method Details

    • init

      public static GraphQLRequest init(io.undertow.server.HttpServerExchange exchange, String appUri, GraphQLApp appDefinition)
    • of

      public static GraphQLRequest of(io.undertow.server.HttpServerExchange exchange)
    • injectContentJson

      public void injectContentJson() throws IOException
      Throws:
      IOException
    • injectContentGraphQL

      public void injectContentGraphQL() throws IOException
      Throws:
      IOException
    • getQuery

      public String getQuery()
    • getOperationName

      public String getOperationName()
    • getVariables

      public com.google.gson.JsonObject getVariables()
    • getGraphQLAppURI

      public String getGraphQLAppURI()
    • getAppDefinition

      public GraphQLApp getAppDefinition()
    • hasVariables

      public boolean hasVariables()