Skip to Content
GraphQL Scalars

BigInt

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

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

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 a string. json-bigint-patch.

Last updated on