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

8 lines
207 B
Text
Raw Normal View History

error: GraphQL union expects at least one union variant
--> fail/union/trait_no_fields.rs:4:1
|
4 | trait Character {}
| ^^^^^^^^^^^^^^^^^^
|
= note: https://spec.graphql.org/October2021#sec-Unions