Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show deprecation information in the Docs sidebar #157

Merged
merged 1 commit into from
Aug 3, 2016

Commits on Aug 3, 2016

  1. 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>
    davidcelis committed Aug 3, 2016
    Configuration menu
    Copy the full SHA
    da68a51 View commit details
    Browse the repository at this point in the history