Module graphql

Module graphql 

Source
Available on crate feature async-graphql only.
Expand description

GraphQL support (request extractors, responses, and subscriptions). Async-GraphQL integration for Tako: extractors, responses, and subscriptions.

  • GraphQLRequest / GraphQLBatchRequest extractors
  • GraphQLResponse / GraphQLBatchResponse responders
  • GraphQLSubscription responder for WebSocket subscriptions

Enable via the async-graphql cargo feature.

Re-exports§

pub use crate::graphiql::GraphiQL;graphiql
pub use crate::graphiql::graphiql;graphiql

Structs§

GraphQLBatchRequest
Batch GraphQL request extractor.
GraphQLBatchResponse
Batch GraphQL response wrapper.
GraphQLOptions
Per-request or global options for GraphQL extraction.
GraphQLProtocol
Extracted WebSocket protocol for GraphQL subscriptions.
GraphQLProtocolRejection
GraphQLRequest
Single GraphQL request extractor.
GraphQLResponse
Single GraphQL response wrapper.
GraphQLSubscription
GraphQL WebSocket subscription responder (GraphQL over WebSocket).
GraphQLWebSocket
A generic GraphQL WebSocket driver using an arbitrary Sink/Stream of tungstenite Messages.

Enums§

GraphQLError
Errors that can occur while parsing GraphQL HTTP requests.

Functions§

attach_graphql_options
Helper to receive a single GraphQL request with custom MultipartOptions. Attach per-request GraphQL options into request extensions.
receive_graphql
receive_graphql_batch
Helper to receive a batch GraphQL request with custom MultipartOptions.
set_global_graphql_options
Set global GraphQL options via Tako’s global state.