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

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

Open
haase1020 opened this issue Dec 22, 2022 · 0 comments

Comments

@haase1020
Copy link

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';
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant