Update book

This commit is contained in:
Sunli 2021-05-16 13:50:47 +08:00
parent 9b1b2cee90
commit a2492a0827
2 changed files with 2 additions and 2 deletions

View File

@ -59,7 +59,7 @@ impl Square {
#[derive(Interface)]
#[graphql(
field(name = "area", type = "f32"),
field(name = "scale", type = "Shape", arg(name = "s", type = "f32"))
field(name = "scale", type = "Shape", arg(name = "s", type = "f32")),
field(name = "short_description", method = "short_description", type = "String")
)]
enum Shape {

View File

@ -57,7 +57,7 @@ impl Square {
#[derive(Interface)]
#[graphql(
field(name = "area", type = "f32"),
field(name = "scale", type = "Shape", arg(name = "s", type = "f32"))
field(name = "scale", type = "Shape", arg(name = "s", type = "f32")),
field(name = "short_description", method = "short_description", type = "String")
)]
enum Shape {