async-graphql/tests/schema.rs

12 lines
249 B
Rust
Raw Normal View History

2020-08-28 06:19:35 +00:00
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();
}