forked from graphql/graphiql
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Show deprecation information in the Docs sidebar
The GraphQL specification [states clearly](https://facebook.github.io/graphql/#sec-Deprecation): > Tools built using GraphQL introspection should respect deprecation by > discouraging deprecated use through information hiding or > developer‐facing warnings. Currently, however, GraphiQL doesn't give any indication of whether or not a field or enum value is deprecated. This patch rectifies this by adding some red text next to field names and enum value names that just says "(DEPRECATED)". If a deprecation reason is given for a field or enum value, that is rendered (also in red) underneath the field or value's description. Closes graphql#34. Signed-off-by: David Celis <me@davidcel.is>
- Loading branch information
1 parent
fdd701a
commit da68a51
Showing
1 changed file
with
29 additions
and
7 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