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

Type Support for Infinity #2299

Closed
RealAdamSinger opened this issue Dec 19, 2019 · 2 comments
Closed

Type Support for Infinity #2299

RealAdamSinger opened this issue Dec 19, 2019 · 2 comments

Comments

@RealAdamSinger
Copy link

RealAdamSinger commented Dec 19, 2019

Currently Infinity cannot be passed into a graphql query even if type Float or Int is used.
Should there be support for this?

The query below has no functional value, it is for demonstration purposes using https://www.graphqlbin.com/v2/6RQ6TM
image

@mjmahone
Copy link
Contributor

Infinity is not a valid GraphQL Spec Integer token: GraphQL the language is not JS, and so just like how integer representations are different between JS and C++, Integer representations are different between JS and GraphQL.

@dopry
Copy link

dopry commented Dec 14, 2023

I would argue that Infinity is a general math concept and not specific to JS so it would make sense to implement support for Infinity in graphql in general. @RealAdamSinger maybe it makes sense to open this as a feature request for the graphql spec.

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

No branches or pull requests

3 participants