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
NonEmptyString

NonEmptyString

A field whose value can accept any string except empty ones. It will trim any additional white space before validation. This is useful for required strings that you wish to also force a value for. "" or " " are both considered invalid values.

NegativeIntNonNegativeFloat

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