Add note on complex fields impl block in doc (#483)

This commit is contained in:
Samuel Hurel 2019-12-14 09:29:19 +01:00 committed by Christian Legnitto
parent 3a6d5e6a46
commit 89a5dc2fb9

View file

@ -25,6 +25,14 @@ impl Person {
}
}
// Note that this syntax generates an implementation of the GraphQLType trait,
// the base impl of your struct can still be written like usual:
impl Person {
pub fn hidden_from_graphql(&self) {
// [...]
}
}
# fn main() { }
```