Skip to content

graphiql-explorer-deprecated className not applied with graphql version 16.0.0 and up #91

Description

@haase1020

Graphql.js removed the isDeprecated field from GraphQLField in version 16.0.0. Therefore, projects that use graphql v.16.0.0 and up will not have the graphiql-explorer-deprecated className applied, since there is a check for the isDeprecated field.

Recommendation: use the deprecationReason field instead:

    if (field.isDeprecated) {
      className += ' graphiql-explorer-deprecated';
    }

should instead be:

    if (field.deprecationReason) {
      className += ' graphiql-explorer-deprecated';
    }

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions