Add note on complex fields impl block in doc (#483)
This commit is contained in:
parent
3a6d5e6a46
commit
89a5dc2fb9
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…
Reference in a new issue