1aa1000c3b
- remove support for `#[graphql_interface(dyn)]` - describe all interface trait methods with type's fields or impl block instead of `#[graphql_interface]` attribute on `impl Trait` - forbid default impls on non-skipped trait methods - support additional nullable arguments on implementer - support returning sub-type on implementer
11 lines
170 B
Rust
11 lines
170 B
Rust
use juniper::graphql_interface;
|
|
|
|
#[graphql_interface]
|
|
trait Character {
|
|
fn id(&self) -> &str;
|
|
|
|
#[graphql(name = "id")]
|
|
fn id2(&self) -> &str;
|
|
}
|
|
|
|
fn main() {}
|