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
PhoneNumber

PhoneNumber

A field whose value conforms to the standard E.164 format as specified in E.164 specification. Basically, this is +17895551234. The very powerful libphonenumber library is available to take that format, parse and display it in whatever display format you want. It can also be used to parse user input and get the E.164 format to pass into a schema.

ObjectIDPort

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