File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 22
33Directives in GraphQL are extensible annotations which alter the runtime
44evaluation of a query or which add information to the ` schema ` definition.
5- They always begin with an ` @ ` . There are three built-in directives which this
5+ They always begin with an ` @ ` . There are four built-in directives which this
66library automatically handles:
77
881 . ` @include(if: Boolean!) ` : Only resolve this field and include it in the
@@ -11,9 +11,11 @@ results if the `if` argument evaluates to `true`.
1111results if the ` if ` argument evaluates to ` false ` .
12123 . ` @deprecated(reason: String) ` : Mark the field or enum value as deprecated
1313through introspection with the specified ` reason ` string.
14+ 4 . ` @specifiedBy(url: String!) ` : Mark the custom scalar type through
15+ introspection as specified by a human readable page at the specified URL.
1416
1517The ` schema ` can also define custom ` directives ` which are valid on different
1618elements of the ` query ` . The library does not handle them automatically, but it
17- will pass them to the ` getField ` implementations through the
19+ will pass them to the ` getField ` implementations through the optional
1820` graphql::service::FieldParams ` struct (see [ fieldparams.md] ( fieldparams.md )
1921for more information).
You can’t perform that action at this time.
0 commit comments