docs: EmptyQuery isn't a thing

This commit is contained in:
Dylan Anthony 2022-09-23 11:42:19 -06:00
parent 60eeafe323
commit 80eb21af64
1 changed files with 4 additions and 1 deletions

View File

@ -11,8 +11,11 @@ Apollo Federation is a GraphQL architecture for combining multiple GraphQL servi
```rust
# extern crate async_graphql;
# use async_graphql::*;
# struct Query;
# #[Object]
# impl Query {}
fn main() {
let schema = Schema::build(EmptyQuery, EmptyMutation, EmptySubscription)
let schema = Schema::build(Query, EmptyMutation, EmptySubscription)
.enable_federation()
.finish();
// ... Start your server of choice