Merge pull request #597 from soukyo/master
Update Interface book build()->finish()
This commit is contained in:
commit
c2d1e07397
@ -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();
|
||||||
```
|
```
|
||||||
|
@ -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();
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user