graphql-json-to-sdl

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

A command line utility for converting a JSON GraphQL schema to GraphQL SDL (Schema Definition Language). Current version 0.5.0, released with low frequency (last release in 2020). Key differentiator: it sorts fields from the JSON schema before writing the SDL, ensuring consistent output even with nondeterministic field order from code-first libraries. Useful for tooling that requires a .graphql file when only a JSON schema is available. Ships TypeScript types.