diff --git a/src/content/learn/Learn-Queries.md b/src/content/learn/Learn-Queries.md index 6d9992fd30..22819d62d5 100644 --- a/src/content/learn/Learn-Queries.md +++ b/src/content/learn/Learn-Queries.md @@ -258,8 +258,8 @@ Try editing the variables above to instead pass `true` for `withFriends`, and se We needed to use a new feature in GraphQL called a _directive_. A directive can be attached to a field or fragment inclusion, and can affect execution of the query in any way the server desires. The core GraphQL specification includes exactly two directives, which must be supported by any spec-compliant GraphQL server implementation: -- `@include(if: Boolean)` Only include this field in the result if the argument is `true`. -- `@skip(if: Boolean)` Skip this field if the argument is `true`. +- `@include(if: Boolean!)` Only include this field in the result if the argument is `true`. +- `@skip(if: Boolean!)` Skip this field if the argument is `true`. Directives can be useful to get out of situations where you otherwise would need to do string manipulation to add and remove fields in your query. Server implementations may also add experimental features by defining completely new directives.