Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
Parse Server | 20,270 | 1,140 | 89 | 18 hours ago | 220 | September 20, 2022 | 402 | apache-2.0 | JavaScript | |
Parse Server for Node.js / Express | ||||||||||
Apollo Server | 13,366 | 5,326 | 1,153 | 15 hours ago | 305 | August 26, 2022 | 42 | mit | TypeScript | |
🌍 Spec-compliant and production ready JavaScript GraphQL server that lets you develop in a schema-first way. Built for Express, Connect, Hapi, Koa, and more. | ||||||||||
Graphql Shield | 3,448 | a month ago | 89 | mit | TypeScript | |||||
🛡 A GraphQL tool to ease the creation of permission layer. | ||||||||||
Vulcain | 3,358 | 2 | 3 months ago | 15 | October 14, 2021 | 22 | agpl-3.0 | Go | ||
Fast and idiomatic client-driven REST APIs. | ||||||||||
Strawberry | 3,244 | 20 hours ago | 383 | mit | Python | |||||
A GraphQL library for Python that leverages type annotations 🍓 | ||||||||||
Meatier | 3,115 | 5 years ago | 36 | JavaScript | ||||||
:hamburger: like meteor, but meatier :hamburger: | ||||||||||
Async Graphql | 2,864 | 52 | 2 days ago | 386 | September 26, 2022 | 107 | apache-2.0 | Rust | ||
A GraphQL server library implemented in Rust | ||||||||||
Ariadne | 2,026 | 10 | 29 | 20 hours ago | 34 | April 22, 2022 | 55 | bsd-3-clause | Python | |
Python library for implementing GraphQL servers using schema-first approach. | ||||||||||
Graphpack | 1,992 | 12 | 1 | 2 years ago | 14 | February 26, 2019 | 34 | mit | JavaScript | |
☄️ A minimalistic zero-config GraphQL server. | ||||||||||
Json Graphql Server | 1,849 | 40 | 5 | a month ago | 21 | August 24, 2022 | 9 | mit | JavaScript | |
Get a full fake GraphQL API with zero coding in less than 30 seconds. |
a high-performance graphql server library that's fully specification compliant
Book • 中文文档 • Docs • GitHub repository • Cargo package
This crate uses #![forbid(unsafe_code)]
to ensure everything is implemented in 100% safe Rust.
use std::error::Error;
use async_graphql::*;
use async_graphql_poem::*;
use poem::{*, listener::TcpListener};
struct Query;
#[Object]
impl Query {
async fn howdy(&self) -> &'static str {
"partner"
}
}
async fn main() -> Result<(), Box<dyn Error>> {
// create the schema
let schema = Schema::build(Query, EmptyMutation, EmptySubscription).finish();
// start the http server
let app = Route::new().at("/", get(graphiql).post(GraphQL::new(schema)));
println!("GraphiQL: http://localhost:8000");
Server::new(TcpListener::bind("0.0.0.0:8000")).run(app).await?;
Ok(())
}
use std::error::Error;
use async_graphql::dynamic::*;
use async_graphql_poem::*;
use poem::{*, listener::TcpListener};
let query = Object::new("Query")
.field(Field::new("howdy", TypeRef::named_nn(TypeRef::STRING), |_| FieldFuture::new(async { "partner" })));
async fn main() -> Result<(), Box<dyn Error>> {
// create the schema
let schema = Schema::build(query, None, None)
.register(query)
.finish()?;
// start the http server
let app = Route::new().at("/", get(graphiql).post(GraphQL::new(schema)));
println!("GraphiQL: http://localhost:8000");
Server::new(TcpListener::bind("0.0.0.0:8000")).run(app).await?;
Ok(())
}
Note: Minimum supported Rust version: 1.65.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]
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
) and GraphQL Playground (playground
):
feature | enables |
---|---|
apollo_tracing |
Enable the Apollo tracing extension. |
apollo_persisted_queries |
Enable the Apollo persisted queries extension. |
log |
Enable the Logger extension. |
tracing |
Enable the Tracing extension. |
opentelemetry |
Enable the OpenTelemetry extension. |
unblock |
Support Asynchronous reader for Upload |
bson |
Integrate with the bson crate. |
chrono |
Integrate with the chrono crate. |
chrono-tz |
Integrate with the chrono-tz crate. |
url |
Integrate with the url crate. |
uuid |
Integrate with the uuid crate. |
uuid08 |
Integrate with the uuid 0.8 crate. |
string_number |
Enable the StringNumber. |
dataloader |
Support DataLoader. |
secrecy |
Integrate with the secrecy crate. |
decimal |
Integrate with the rust_decimal crate. |
bigdecimal |
Integrate with the bigdecimal crate. |
cbor |
Support for serde_cbor. |
smol_str |
Integrate with the smol_str crate. |
hashbrown |
Integrate with the hashbrown crate. |
time |
Integrate with the time crate. |
tokio-sync |
Integrate with the tokio::sync::RwLock and tokio::sync::Mutex . |
fast_chemail |
Integrate with the fast_chemail crate. |
tempfile |
Save the uploaded content in the temporary file. |
dynamic-schema |
Support dynamic schema |
graphiql |
Enables the GraphiQL IDE integration |
playground |
Enables the GraphQL playground IDE integration |
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 avaliable.
async-graphql
in production?Licensed under either of