Skip to content

Fixing GraphQLDeprecate not showing in graphiql #220

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

Merged
merged 4 commits into from
Aug 14, 2019
Merged

Fixing GraphQLDeprecate not showing in graphiql #220

merged 4 commits into from
Aug 14, 2019

Conversation

yarinvak
Copy link
Member

@yarinvak yarinvak commented Aug 14, 2019

When someone uses @GraphQLDeprecate without supplying a reason, it passes an empty string, which graphiql for some reason does not parse and treats the field as a non-deprecated field.
So now the default value is Deprecated even if no reason been supplied to the annotation (same as @Deprecated annotation)

fixing #210

yarinvak added 4 commits July 9, 2019 16:05
…t to "Deprecated" so graphiql will be able to parse it and present it as a deprecated field
…t to "Deprecated" so graphiql will be able to parse it and present it as a deprecated field
@yarinvak yarinvak added this to the v7.1 milestone Aug 14, 2019
@yarinvak yarinvak merged commit 1230872 into Enigmatis:development Aug 14, 2019
@yarinvak yarinvak deleted the graphqldeprecated-refactoring branch January 17, 2020 15:54
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

Successfully merging this pull request may close these issues.

1 participant