juniper/integration_tests/codegen_fail/fail/interface/fields_duplicate.stderr
ilslv 1aa1000c3b
Redesign #[graphql_interface] macro (#1009, #1000, #814)
- 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
2022-01-26 20:58:53 +02:00

12 lines
324 B
Text

error: GraphQL interface must have a different name for each field
--> fail/interface/fields_duplicate.rs:4:1
|
4 | / trait Character {
5 | | fn id(&self) -> &str;
6 | |
7 | | #[graphql(name = "id")]
8 | | fn id2(&self) -> &str;
9 | | }
| |_^
|
= note: https://spec.graphql.org/June2018/#sec-Interfaces