Struct juniper::http::GraphQLRequest [] [src]

pub struct GraphQLRequest { /* fields omitted */ }

The expected structure of the decoded JSON document for either POST or GET requests.

For POST, you can use Serde to deserialize the incoming JSON data directly into this struct - it derives Deserialize for exactly this reason.

For GET, you will need to parse the query string and exctract "query", "operationName", and "variables" manually.

Methods

impl GraphQLRequest
[src]

Construct a new GraphQL request from parts

Execute a GraphQL request using the specified schema and context

This is a simple wrapper around the execute function exposed at the top level of this crate.