The Guild LogoThe Guild Monogram

Search docs

Search icon

Products by The Guild


Hive logoHive blurred logo


Schema Registry for your GraphQL Workflows

Skip to main content


A long integer type for graphql-js. It uses native BigInt implementation of JavaScript.

If your environment doesn't support BigInt, it will support 53-bit values at maximum. You can use polyfills to support 64-bit values.

GraphQLError: Argument "num" has invalid value 9007199254740990.              Expected value of type ""Int"", found 9007199254740990.

In order to support BigInt in JSON.parse and JSON.stringify, it is recommended to install this npm package together with this scalar. Otherwise, JavaScript will serialize the value as string. json-bigint-patch