2020-08-28 06:19:35 +00:00
|
|
|
use async_graphql::*;
|
|
|
|
|
|
|
|
#[async_std::test]
|
|
|
|
pub async fn test_schema_default() {
|
2020-09-18 00:52:13 +00:00
|
|
|
#[derive(SimpleObject, Default)]
|
2020-08-28 06:19:35 +00:00
|
|
|
struct Query;
|
|
|
|
|
|
|
|
type MySchema = Schema<Query, EmptyMutation, EmptySubscription>;
|
|
|
|
|
|
|
|
let _schema = MySchema::default();
|
|
|
|
}
|