A GraphQL server library implemented in Rust
…Requires the dynamic-schema feature to be enabled.
…I strongly recommend limiting the complexity and depth of queries in a production environment to avoid possible DDos attacks.
Note: Minimum supported Rust version: 1.86.0 or later
All examples are in the sub-repository, located in the examples directory.
git submodule update # update the examples repo
cd examples && cargo run --bin [name]For more information, see the sub-repository README.md.
Integrations are what glue async-graphql with your web server, here are provided ones, or you can build your own!
This crate offers the following features. Most are not activated by default, except the integrations of GraphiQL (graphiql):
| feature | enables |
|---|---|
apollo_tracing |
Enable the Apollo tracing extension. |
apollo_persisted_queries |
Enable the Apollo persisted queries extension. |
boxed-trait |
Enables async-trait for all traits. |
chrono |
Integrate with the chrono crate. |
chrono-tz |
Integrate with the chrono-tz crate. |
dataloader |
Support DataLoader. |
decimal |
Integrate with the rust_decimal crate. |
dynamic-schema |
Support dynamic schema |
graphiql |
Enables the GraphiQL IDE integration |
log |
Enable the Logger extension. |
rawvalue |
Support raw values from serde_json |
secrecy |
Integrate with the secrecy crate. |
string_number |
Enable the StringNumber. |
time |
Integrate with the time crate. |
tracing |
Enable the Tracing extension. |
tempfile |
Save the uploaded content in the temporary file. |
unblock |
Support Asynchronous reader for Upload |
uuid |
Integrate with the uuid crate. |
url |
Integrate with the url crate. |
Additional extensions are available in the async-graphql-extras crate. These extensions require additional dependencies and are maintained separately.
See the extras crate README for more information.
One of the tools used to monitor your graphql server in production is Apollo Studio. Apollo Studio is a cloud platform that helps you build, monitor, validate, and secure your organization's data graph.
Add the extension crate async_graphql_apollo_studio_extension to make this available.
async-graphql in production?Licensed under either of
No open issues yet, or sync has not completed.