Skip to content

Commit

Permalink
Update directives.md (#7469)
Browse files Browse the repository at this point in the history
Update documentation to show that deprecated arguments must be optional
as per GraphQL specification
  • Loading branch information
akinboboye authored Mar 27, 2023
1 parent 1e80814 commit 0a13a0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/source/schema/directives.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ directive @withDeprecatedArgs(

type MyType {
# ARGUMENT_DEFINITION (alternate example on a field's args)
fieldWithDeprecatedArgs(name: String! @deprecated): String
fieldWithDeprecatedArgs(name: String @deprecated): String
# FIELD_DEFINITION
deprecatedField: String @deprecated
}
Expand Down

0 comments on commit 0a13a0e

Please sign in to comment.