graphql-input-number

JSON →
library 0.0.10 ·javascript maintenance
verified Jun 7, 2026

A configurable custom input number scalar type for GraphQL with built-in sanitization and validation for integer and float values. Current stable version 0.0.10. Provides factory functions GraphQLInputInt and GraphQLInputFloat that generate GraphQL scalar types with configurable min/max, sanitize, test, parse, and error handling. Differentiators: lightweight, no other dependencies beyond graphql peer, simple API for defining numeric constraints directly in schema.