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

Drop automatic conversion of IsZero to null #702

Merged
merged 1 commit into from
May 9, 2019

Conversation

vektah
Copy link
Collaborator

@vektah vektah commented May 8, 2019

Moves the conversion of IsZero timestamps into the Time scalar, other custom scalars can return graphql.Null to get this behaviour.

If you don't want time to behave this way you can bring your own custom Time implementation, its pretty short.

Fixes #684

I have:

  • Added tests covering the bug / feature (see testing) - Existing time tests are decent
  • Updated any relevant documentation (see docs)

@vektah vektah added the BC break label May 8, 2019
@vektah vektah force-pushed the drop-automatic-zeroisnull branch from 00d136e to 75aa99a Compare May 8, 2019 12:06
@lwc
Copy link
Member

lwc commented May 9, 2019

LGTM 👌

@vektah vektah merged commit 5586ee2 into master May 9, 2019
@vektah vektah deleted the drop-automatic-zeroisnull branch May 9, 2019 06:58
@vektah vektah added the v0.9 Fixed in 0.9.0 label May 15, 2019
cgxxv pushed a commit to cgxxv/gqlgen that referenced this pull request Mar 25, 2022
…null

Drop automatic conversion of IsZero to null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BC break v0.9 Fixed in 0.9.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

IsZero method usage is problematic
2 participants