async-graphql 1.18.0

A GraphQL server library implemented in Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
use async_graphql::*;

#[async_std::test]
pub async fn test_schema_default() {
    #[derive(GQLSimpleObject, Default)]
    struct Query;

    type MySchema = Schema<Query, EmptyMutation, EmptySubscription>;

    let _schema = MySchema::default();
}