Merge pull request #597 from soukyo/master

Update Interface book build()->finish()
This commit is contained in:
Sunli 2021-08-12 16:49:40 +08:00 committed by GitHub
commit c2d1e07397
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -105,5 +105,5 @@ You need to manually register the `MyInterface` type when constructing the `Sche
```rust ```rust
Schema::build(Query, EmptyMutation, EmptySubscription) Schema::build(Query, EmptyMutation, EmptySubscription)
.register_type::<MyInterface>() .register_type::<MyInterface>()
.build(); .finish();
``` ```

View File

@ -102,5 +102,5 @@ type MySchema = Schema<Query, EmptyMutation, EmptySubscription>;
```rust ```rust
Schema::build(Query, EmptyMutation, EmptySubscription) Schema::build(Query, EmptyMutation, EmptySubscription)
.register_type::<MyInterface>() .register_type::<MyInterface>()
.build(); .finish();
``` ```