Skip to content

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

@haase1020

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';
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions