Skip to content

Comments

add bigint support#4550

Merged
yaacovCR merged 1 commit intographql:nextfrom
yaacovCR:bigint
Feb 11, 2026
Merged

add bigint support#4550
yaacovCR merged 1 commit intographql:nextfrom
yaacovCR:bigint

Conversation

@yaacovCR
Copy link
Contributor

@yaacovCR yaacovCR commented Feb 4, 2026

building on prior work:

This PR adds bigint support to:

  • GraphQLInt, including input/output coercion, throwing if out of bounds, and new default value programmatic default value to literal
  • GraphQLFloat, including input/output coercion, throwing if cannot be represented, including with any loss of precision.
  • GraphQLString, output coercion only, like number
  • GraphQLBoolean, output coercion only, like number
  • GraphQLID, output and input coercion, in parallel to number, and new default value programmatic default value to literal

Also, for custom scalars:

  • updates the defaultScalarValueToLiteral to convert a bigint to an Int literal
  • updates for deprecated astFromValue for passthrough custom scalars, i.e. scalars that return bigint from coerceOutputValue/serialize, to convert bigint to an Int literal.

cf. also #3913

@yaacovCR yaacovCR requested a review from a team as a code owner February 4, 2026 13:00
@vercel
Copy link

vercel bot commented Feb 4, 2026

@yaacovCR is attempting to deploy a commit to the The GraphQL Foundation Team on Vercel.

A member of the Team first needs to authorize it.

@yaacovCR yaacovCR added the PR: feature 🚀 requires increase of "minor" version number label Feb 4, 2026
Co-authored-by: Arda TANRIKULU <ardatanrikulu@gmail.com>
Co-authored-by: jdecroock <decroockjovi@gmail.com>
Co-authored-by: Hkmu <3169251+hkmu@users.noreply.github.com>
Co-authored-by: xonx <119700621+xonx4l@users.noreply.github.com>
@yaacovCR yaacovCR merged commit 8aa56f1 into graphql:next Feb 11, 2026
15 of 16 checks passed
@yaacovCR yaacovCR deleted the bigint branch February 11, 2026 14:40
yaacovCR added a commit that referenced this pull request Feb 22, 2026
building on prior work:

- #3109
- #3973
- #4088
- #4223 
- #4276 

This PR adds bigint support to:
- GraphQLInt, including input/output coercion, throwing if out of
bounds, and new default value programmatic default value to literal
- GraphQLFloat, including input/output coercion, throwing if cannot be
represented, including with any loss of precision.
- GraphQLString, output coercion only, like number
- GraphQLBoolean, output coercion only, like number
- GraphQLID, output and input coercion, in parallel to number, and new
default value programmatic default value to literal

Also, for custom scalars:
- updates the `defaultScalarValueToLiteral` to convert a `bigint` to an
Int literal
- updates for deprecated `astFromValue` for passthrough custom scalars,
i.e. scalars that return `bigint` from coerceOutputValue/serialize, to
convert `bigint` to an Int literal.

cf. also #3913

Co-authored-by: Arda TANRIKULU <ardatanrikulu@gmail.com>
Co-authored-by: jdecroock <decroockjovi@gmail.com>
Co-authored-by: Hkmu <3169251+hkmu@users.noreply.github.com>
Co-authored-by: xonx <119700621+xonx4l@users.noreply.github.com>
yaacovCR added a commit that referenced this pull request Feb 22, 2026
building on prior work:

- #3109
- #3973
- #4088
- #4223 
- #4276 

This PR adds bigint support to:
- GraphQLInt, including input/output coercion, throwing if out of
bounds, and new default value programmatic default value to literal
- GraphQLFloat, including input/output coercion, throwing if cannot be
represented, including with any loss of precision.
- GraphQLString, output coercion only, like number
- GraphQLBoolean, output coercion only, like number
- GraphQLID, output and input coercion, in parallel to number, and new
default value programmatic default value to literal

Also, for custom scalars:
- updates the `defaultScalarValueToLiteral` to convert a `bigint` to an
Int literal
- updates for deprecated `astFromValue` for passthrough custom scalars,
i.e. scalars that return `bigint` from coerceOutputValue/serialize, to
convert `bigint` to an Int literal.

cf. also #3913

Co-authored-by: Arda TANRIKULU <ardatanrikulu@gmail.com>
Co-authored-by: jdecroock <decroockjovi@gmail.com>
Co-authored-by: Hkmu <3169251+hkmu@users.noreply.github.com>
Co-authored-by: xonx <119700621+xonx4l@users.noreply.github.com>
yaacovCR added a commit that referenced this pull request Feb 23, 2026
building on prior work:

- #3109
- #3973
- #4088
- #4223 
- #4276 

This PR adds bigint support to:
- GraphQLInt, including input/output coercion, throwing if out of
bounds, and new default value programmatic default value to literal
- GraphQLFloat, including input/output coercion, throwing if cannot be
represented, including with any loss of precision.
- GraphQLString, output coercion only, like number
- GraphQLBoolean, output coercion only, like number
- GraphQLID, output and input coercion, in parallel to number, and new
default value programmatic default value to literal

Also, for custom scalars:
- updates the `defaultScalarValueToLiteral` to convert a `bigint` to an
Int literal
- updates for deprecated `astFromValue` for passthrough custom scalars,
i.e. scalars that return `bigint` from coerceOutputValue/serialize, to
convert `bigint` to an Int literal.

cf. also #3913

Co-authored-by: Arda TANRIKULU <ardatanrikulu@gmail.com>
Co-authored-by: jdecroock <decroockjovi@gmail.com>
Co-authored-by: Hkmu <3169251+hkmu@users.noreply.github.com>
Co-authored-by: xonx <119700621+xonx4l@users.noreply.github.com>
yaacovCR added a commit that referenced this pull request Feb 23, 2026
building on prior work:

- #3109
- #3973
- #4088
- #4223 
- #4276 

This PR adds bigint support to:
- GraphQLInt, including input/output coercion, throwing if out of
bounds, and new default value programmatic default value to literal
- GraphQLFloat, including input/output coercion, throwing if cannot be
represented, including with any loss of precision.
- GraphQLString, output coercion only, like number
- GraphQLBoolean, output coercion only, like number
- GraphQLID, output and input coercion, in parallel to number, and new
default value programmatic default value to literal

Also, for custom scalars:
- updates the `defaultScalarValueToLiteral` to convert a `bigint` to an
Int literal
- updates for deprecated `astFromValue` for passthrough custom scalars,
i.e. scalars that return `bigint` from coerceOutputValue/serialize, to
convert `bigint` to an Int literal.

cf. also #3913

Co-authored-by: Arda TANRIKULU <ardatanrikulu@gmail.com>
Co-authored-by: jdecroock <decroockjovi@gmail.com>
Co-authored-by: Hkmu <3169251+hkmu@users.noreply.github.com>
Co-authored-by: xonx <119700621+xonx4l@users.noreply.github.com>
yaacovCR added a commit that referenced this pull request Feb 24, 2026
building on prior work:

- #3109
- #3973
- #4088
- #4223 
- #4276 

This PR adds bigint support to:
- GraphQLInt, including input/output coercion, throwing if out of
bounds, and new default value programmatic default value to literal
- GraphQLFloat, including input/output coercion, throwing if cannot be
represented, including with any loss of precision.
- GraphQLString, output coercion only, like number
- GraphQLBoolean, output coercion only, like number
- GraphQLID, output and input coercion, in parallel to number, and new
default value programmatic default value to literal

Also, for custom scalars:
- updates the `defaultScalarValueToLiteral` to convert a `bigint` to an
Int literal
- updates for deprecated `astFromValue` for passthrough custom scalars,
i.e. scalars that return `bigint` from coerceOutputValue/serialize, to
convert `bigint` to an Int literal.

cf. also #3913

Co-authored-by: Arda TANRIKULU <ardatanrikulu@gmail.com>
Co-authored-by: jdecroock <decroockjovi@gmail.com>
Co-authored-by: Hkmu <3169251+hkmu@users.noreply.github.com>
Co-authored-by: xonx <119700621+xonx4l@users.noreply.github.com>
yaacovCR added a commit that referenced this pull request Feb 24, 2026
building on prior work:

- #3109
- #3973
- #4088
- #4223 
- #4276 

This PR adds bigint support to:
- GraphQLInt, including input/output coercion, throwing if out of
bounds, and new default value programmatic default value to literal
- GraphQLFloat, including input/output coercion, throwing if cannot be
represented, including with any loss of precision.
- GraphQLString, output coercion only, like number
- GraphQLBoolean, output coercion only, like number
- GraphQLID, output and input coercion, in parallel to number, and new
default value programmatic default value to literal

Also, for custom scalars:
- updates the `defaultScalarValueToLiteral` to convert a `bigint` to an
Int literal
- updates for deprecated `astFromValue` for passthrough custom scalars,
i.e. scalars that return `bigint` from coerceOutputValue/serialize, to
convert `bigint` to an Int literal.

cf. also #3913

Co-authored-by: Arda TANRIKULU <ardatanrikulu@gmail.com>
Co-authored-by: jdecroock <decroockjovi@gmail.com>
Co-authored-by: Hkmu <3169251+hkmu@users.noreply.github.com>
Co-authored-by: xonx <119700621+xonx4l@users.noreply.github.com>
yaacovCR added a commit that referenced this pull request Feb 24, 2026
building on prior work:

- #3109
- #3973
- #4088
- #4223 
- #4276 

This PR adds bigint support to:
- GraphQLInt, including input/output coercion, throwing if out of
bounds, and new default value programmatic default value to literal
- GraphQLFloat, including input/output coercion, throwing if cannot be
represented, including with any loss of precision.
- GraphQLString, output coercion only, like number
- GraphQLBoolean, output coercion only, like number
- GraphQLID, output and input coercion, in parallel to number, and new
default value programmatic default value to literal

Also, for custom scalars:
- updates the `defaultScalarValueToLiteral` to convert a `bigint` to an
Int literal
- updates for deprecated `astFromValue` for passthrough custom scalars,
i.e. scalars that return `bigint` from coerceOutputValue/serialize, to
convert `bigint` to an Int literal.

cf. also #3913

Co-authored-by: Arda TANRIKULU <ardatanrikulu@gmail.com>
Co-authored-by: jdecroock <decroockjovi@gmail.com>
Co-authored-by: Hkmu <3169251+hkmu@users.noreply.github.com>
Co-authored-by: xonx <119700621+xonx4l@users.noreply.github.com>
yaacovCR added a commit that referenced this pull request Feb 24, 2026
building on prior work:

- #3109
- #3973
- #4088
- #4223 
- #4276 

This PR adds bigint support to:
- GraphQLInt, including input/output coercion, throwing if out of
bounds, and new default value programmatic default value to literal
- GraphQLFloat, including input/output coercion, throwing if cannot be
represented, including with any loss of precision.
- GraphQLString, output coercion only, like number
- GraphQLBoolean, output coercion only, like number
- GraphQLID, output and input coercion, in parallel to number, and new
default value programmatic default value to literal

Also, for custom scalars:
- updates the `defaultScalarValueToLiteral` to convert a `bigint` to an
Int literal
- updates for deprecated `astFromValue` for passthrough custom scalars,
i.e. scalars that return `bigint` from coerceOutputValue/serialize, to
convert `bigint` to an Int literal.

cf. also #3913

Co-authored-by: Arda TANRIKULU <ardatanrikulu@gmail.com>
Co-authored-by: jdecroock <decroockjovi@gmail.com>
Co-authored-by: Hkmu <3169251+hkmu@users.noreply.github.com>
Co-authored-by: xonx <119700621+xonx4l@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

PR: feature 🚀 requires increase of "minor" version number

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant