GraphQL-Scalars

Common custom GraphQL Scalars for precise type-safe GraphQL schemas

Documentation
GitHubGitHub
  • Introduction
  • Quick Start
    • AccountNumber
    • BigInt
    • Byte
    • CountryCode
    • Cuid
    • Currency
    • Date
    • DateTime
    • DeweyDecimal
    • DID
    • Duration
    • EmailAddress
    • HexColorCode
    • Hexadecimal
    • HSL
    • IBAN
    • IP
    • IPCPatent
    • IPv4
    • IPv6
    • ISBN
    • JSON
    • JSONObject
    • JWT
    • Latitude
    • LocalDate
    • LocalDateTime
    • LocalEndTime
    • LocalTime
    • Locale
    • Longitude
    • MAC
    • NegativeFloat
    • NegativeInt
    • NonEmptyString
    • NonNegativeFloat
    • NonNegativeInt
    • NonPositiveFloat
    • NonPositiveInt
    • ObjectID
    • PhoneNumber
    • Port
    • PositiveFloat
    • PositiveInt
    • PostalCode
    • RegularExpression
    • RGB
    • RGBA
    • RoutingNumber
    • SafeInt
    • SemVer
    • Time
    • TimeZone
    • Timestamp
    • URL
    • USCurrency
    • UTCOffset
    • UUID
    • Void
    • Ssn
    • Usage Example
    • GraphQL-Yoga
    • Apollo Server
    • Mocks
    • Generate your own scalars from regex
Question? Give us feedback →Edit this page on GitHub
Documentation
Available Scalars
BigInt

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.

AccountNumberByte

Products

  • Hive
  • Mesh
  • Yoga
  • Code Generator
  • Nextra
  • GraphQL to REST

Resources

  • Press Kit

Company

  • About
  • Blog
  • Newsletter
DiscordGitHub
Cloud Security Alliance Star Level One Badge