From a09fd09cb1e810c8b52f8e738cb5d8fe1c9d7328 Mon Sep 17 00:00:00 2001 From: sunli Date: Sun, 8 Mar 2020 09:22:50 +0800 Subject: [PATCH] Update model.rs --- examples/starwars/model.rs | 8 -------- 1 file changed, 8 deletions(-) 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,