Docs
Available Scalars
BigInt

BigInt

A long integer type for graphql-js (opens in a new tab). It uses native BigInt implementation of JavaScript. (opens in a new tab)

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 (opens in a new tab).