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

Fix Playground marking fields as @deprecated when they're not #524

Merged
merged 1 commit into from
Nov 25, 2019

Conversation

MarkKremer
Copy link
Contributor

Fixes #504

In the issue I said that making DeprecationReason nillable in the struct is probably better. However, that makes it unnecessarily complicated to assign a string to it. Instead, I fixed the problem by using a resolver that returns nil if DeprecationReason is an empty string.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.02%) to 92.377% when pulling d0c0ac3 on MarkKremer:master into 5fa0612 on graphql-go:master.

@chris-ramon chris-ramon self-requested a review November 25, 2019 01:58
Copy link
Member

@chris-ramon chris-ramon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍 –– Thanks a lot @MarkKremer 🚢 💯

@chris-ramon chris-ramon merged commit 14904e6 into graphql-go:master Nov 25, 2019
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.

falsy @deprecated fields in Playground Schema
3 participants