Update model.rs

This commit is contained in:
sunli 2020-03-08 09:22:50 +08:00
parent 426d7923dc
commit a09fd09cb1

View File

@ -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::<StarWars>().luke).into()
}
#[field]
async fn human(
&self,