1
0
mirror of https://github.com/actix/examples synced 2025-06-26 17:17:42 +02:00

update async-graphql deps

This commit is contained in:
Rob Ede
2023-10-29 01:10:31 +01:00
parent 95926dc0f5
commit 8fa3507674
3 changed files with 23 additions and 55 deletions

View File

@ -8,8 +8,8 @@ actix-web.workspace = true
actix-web-lab.workspace = true
actix-cors.workspace = true
async-graphql = "5"
async-graphql-actix-web = "5"
async-graphql = "6"
async-graphql-actix-web = "6"
env_logger.workspace = true
log.workspace = true

View File

@ -170,10 +170,10 @@ impl QueryRoot {
#[derive(Interface)]
#[graphql(
field(name = "id", type = "&str"),
field(name = "name", type = "&str"),
field(name = "friends", type = "Vec<Character<'ctx>>"),
field(name = "appears_in", type = "&[Episode]")
field(name = "id", ty = "&str"),
field(name = "name", ty = "&str"),
field(name = "friends", ty = "Vec<Character<'ctx>>"),
field(name = "appears_in", ty = "&[Episode]")
)]
pub enum Character<'a> {
Human(Human<'a>),