CLI tool that converts a GraphQL schema introspection JSON file into SDL (Schema Definition Language) format. Version 1.0.3 is stable, with no regular release cadence. Differentiator: simple, focused CLI utility with no dependencies, unlike alternatives like graphql-cli or custom scripts.
npm install graphql-introspection-json-to-sdlNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Convert an introspection JSON file to SDL and write to a .graphql file.
Use shell redirection: graphql-introspection-json-to-sdl schema.json > schema.graphql
Ensure the JSON file contains the full introspection result, not just the data part.
For federated schemas, consider using @apollo/federation-introspection or graphql-inspector.
Run 'npm install -g graphql-introspection-json-to-sdl' or use npx.
Provide the correct path to the introspection JSON file.
No dependency data recorded yet.