[][src]Crate juniper_actix

juniper_actix

This repository contains the actix web server integration for Juniper, a GraphQL implementation for Rust, its inspired and some parts are copied from juniper_warp

Documentation

For documentation, including guides and examples, check out Juniper.

A basic usage example can also be found in the API documentation.

Examples

Check examples/actix_server for example code of a working actix server with GraphQL handlers.

License

This project is under the BSD-2 license.

Check the LICENSE file for details.

Functions

get_graphql_handler

Actix GraphQL Handler for GET requests

graphiql_handler

Create a handler that replies with an HTML page containing GraphiQL. This does not handle routing, so you can mount it on any endpoint

graphql_handler

Actix Web GraphQL Handler for GET and POST requests

playground_handler

Create a handler that replies with an HTML page containing GraphQL Playground. This does not handle routing, so you cant mount it on any endpoint.

post_graphql_handler

Actix GraphQL Handler for POST requests