Expand description
§juniper_warp crate
warp web server integration for juniper (GraphQL implementation for Rust).
§Documentation
For documentation, including guides and examples, check out Juniper Book.
A basic usage example can also be found in the API docs.
§Examples
Check examples/subscription.rs for example code of a working warp server with GraphQL handlers and subscriptions.
§License
This project is licensed under BSD 2-Clause License.
Modules§
- subscriptions
subscriptions - GraphQL subscriptions handler implementation.
Constants§
- DEFAULT_
BODY_ LIMIT - Default maximum size in bytes of a request body for
make_graphql_filter()andmake_graphql_filter_sync().
Functions§
- graphiql_
filter - Create a filter that replies with an HTML page containing GraphiQL. This does not handle routing, so you can mount it on any endpoint.
- make_
graphql_ filter - Makes a
Filterfor handling GraphQL queries/mutations. - make_
graphql_ filter_ sync - Same as
make_graphql_filter(), but for executing synchronously. - make_
graphql_ filter_ sync_ with_ body_ limit - Same as
make_graphql_filter_sync(), but reads at mostbody_limitbytes of a request body. - make_
graphql_ filter_ with_ body_ limit - Same as
make_graphql_filter(), but reads at mostbody_limitbytes of a request body. - playground_
filter - Create a filter that replies with an HTML page containing GraphQL Playground. This does not handle routing, so you can mount it on any endpoint.