juniper/tests/codegen/fail/union/trait_with_attr_on_method.stderr

9 lines
370 B
Text
Raw Normal View History

error: GraphQL union cannot use #[graphql(with = ...)] attribute on a trait method
--> fail/union/trait_with_attr_on_method.rs:5:15
|
5 | #[graphql(with = something)]
| ^^^^
|
= note: https://spec.graphql.org/October2021#sec-Unions
= note: instead use #[graphql(ignore)] on the method with #[graphql_union(on ... = ...)] on the trait itself