-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow deprecation of input values (field args, directive args, input …
…fields) (#805) Adds the ability to deprecate arguments, directive arguments, and input fields on input types. Exposes these deprecations via the introspection system with the same mechanism as found in existing field deprecations. Adds a schema validation rule for @deprecated on required arguments - The `@deprecated` directive must not appear on required (non-null without a default) arguments or input object field definitions. Deprecated arguments and fields are excluded by default in introspection, and deprecating required arguments or input fields could create confusion for clients. Co-authored-by: Kevin Smithson <smitt04@gmail.com> Co-authored-by: Lee Byron <lee@leebyron.com> Co-authored-by: Ivan Maximov <sungam3r@yandex.ru> Co-authored-by: Stephen Spalding <fotoetienne@users.noreply.github.com>
- Loading branch information
1 parent
6b69577
commit 94f73f4
Showing
2 changed files
with
47 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters