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 extract "query", "operationName", and "variables" manually.

Methods

impl GraphQLRequest
[src]

[src]

Construct a new GraphQL request from parts

[src]

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.

Trait Implementations

impl Clone for GraphQLRequest
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq for GraphQLRequest
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Debug for GraphQLRequest
[src]

[src]

Formats the value using the given formatter.