juniper/tests/codegen/fail/union/trait_with_attr_on_method.stderr
ilslv a32140cd46
Update all links to October 2021 spec (#1075, #1000)
Co-authored-by: Kai Ren <tyranron@gmail.com>
2022-06-28 15:32:08 +00:00

8 lines
370 B
Text

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