-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Allow for serializing int as BigInt #4223
Conversation
✅ Deploy Preview for compassionate-pike-271cb3 ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
99dca99
to
58d5b5b
Compare
Hi @JoviDeCroock, I'm @github-actions bot happy to help you with this PR 👋 Supported commandsPlease post this commands in separate comments and only one per comment:
|
How does this compare to #4088 ? |
Maybe #3109 then? I had closed the earlier PRs in favor of the more comprehensive, but that could have been the less optimal approach. |
58d5b5b
to
bb878b9
Compare
That is indeed similar, that only gets applied to |
Co-Authored-By: Hkmu <3169251+hkmu@users.noreply.github.com>
bb878b9
to
1318fa5
Compare
Did you mean ID here? Did we want to support String as well? |
I meant what it reads, a JS value of type BigInt needs to get transformed to a string, just like we do for Int. i.e. when my resolver returns |
Now I understand your description better… but I still wonder now that we have opened the bigint box whether we can support it with regards to our string scalar. it would certainly be reasonable to make that a separate PR. |
Fixes #3913
In the spec we say that we allow for
BigInt
as anID
value in here. However in JS we don't support serializing a response value fromBigInt
toString
.