Skip to content

Conversation

@jakobmerrild
Copy link

The Long data type is commonly used in many applications because the largest value that can be held in an Int value is 2^31-1. See: graphql/graphql-spec#73

I'm honestly torn about whether or not output strings should be allowed 👀 . As discussed in the linked issue common clients (JavaScript) does not read JSON numbers above 2^53-1 into number without loss of precision.

Also accepting String inputs without accepting String outputs seem inconsistent.

The `Long` data type is commonly used in many applications because
the largest value that can be held in an `Int` value is `2^31-1`.
See: graphql/graphql-spec#73
@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Dec 16, 2024

CLA Signed


The committers listed above are authorized under a signed CLA.

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