Add note on complex fields impl block in doc (#483)
This commit is contained in:
parent
d4c75f0ba5
commit
5b1c5c697a
1 changed files with 8 additions and 0 deletions
|
@ -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() { }
|
# fn main() { }
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue