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';
}
Graphql.js removed the
isDeprecated
field fromGraphQLField
in version 16.0.0. Therefore, projects that use graphql v.16.0.0 and up will not have thegraphiql-explorer-deprecated
className applied, since there is a check for theisDeprecated
field.Recommendation: use the
deprecationReason
field instead:should instead be: