diff --git a/docs/book/content/types/objects/complex_fields.md b/docs/book/content/types/objects/complex_fields.md index 902b442e..7ee14453 100644 --- a/docs/book/content/types/objects/complex_fields.md +++ b/docs/book/content/types/objects/complex_fields.md @@ -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() { } ```