Provides a 53-bit wide integer scalar for graphql-js, extending the default 32-bit GraphQLInt to cover JavaScript's safe integer range (Number.MAX_SAFE_INTEGER). Current stable version is 1.0.0. No recent updates; the library is simple and stable. Key differentiator: unlike alternatives like GraphQLInt, it accepts values up to 2^53-1, solving the common 'Invalid value' error for large integers.
npm install graphql-bigintNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a GraphQL schema with a BigInt field to handle large integers.
Use a string-based BigInt scalar if you need arbitrary precision beyond 53 bits.
Coerce values with Math.floor() or similar before returning from resolvers.
Use dynamic import or a bundler that handles CommonJS.
Use `const BigInt = require('graphql-bigint')` or `import BigInt from 'graphql-bigint'`.Use graphql-bigint's BigInt scalar for such values.
Run `npm install graphql-bigint`.