graphql-query-to-json
JSON →Converts GraphQL query, mutation, and subscription strings into structured JSON objects, enabling programmatic manipulation and analysis of GraphQL queries. This TypeScript library (v2.0.6, actively maintained on GitHub) is the reverse of json-to-graphql-query. Key differentiators: full GraphQL support including variables, arguments, aliases, inline fragments, enums, and type safety with comprehensive TypeScript definitions. It provides predictable transformation rules and descriptive error handling. Active development, regular releases on npm.
Resources
packagegraphql-query-to-json ↗
API endpoints
full doc /v1/registry/graphql-query-to-json