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:
@ -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
|
||||
|
@ -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>),
|
||||
|
Reference in New Issue
Block a user