docs: EmptyQuery isn't a thing

This commit is contained in:
Dylan Anthony 2022-09-23 11:42:19 -06:00
parent 4327c14e50
commit 6193f24aae
No known key found for this signature in database
GPG Key ID: F14E2067C8BF5030
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