diff --git a/examples/starwars/model.rs b/examples/starwars/model.rs index 430afffd..47a09cf9 100644 --- a/examples/starwars/model.rs +++ b/examples/starwars/model.rs @@ -87,9 +87,6 @@ impl Droid { pub struct QueryRoot; -#[async_graphql::Union] -struct HumanDroid(Human, Droid); - #[async_graphql::Object] impl QueryRoot { #[field] @@ -108,11 +105,6 @@ impl QueryRoot { } } - #[field] - async fn test(&self, ctx: &Context<'_>) -> HumanDroid { - Human(ctx.data::().luke).into() - } - #[field] async fn human( &self,