Formateadores y código
GraphQL SDL ⇄ Tipos TypeScript
Walk a schema, emit typed interfaces — and back again.
Nota del editor
Understanding · The schema is the contract, TypeScript is the safety net.
Este capítulo en profundidad está disponible solo en inglés por el momento. La herramienta de conversión de arriba funciona en tu idioma; el artículo explicativo extenso aún no se ha traducido.
Preguntas frecuentes
Quick answers.
›Does this tool support custom scalars?
Yes. When converting SDL to TypeScript, custom scalars are mapped to `any` or `unknown` by default, which you can then refine in your code.
›Are nullable fields handled correctly?
Yes. GraphQL fields without an exclamation mark are converted to optional properties (using the `?` operator) or union types with `null` in TypeScript.
›Can it convert TypeScript back to SDL?
Yes. The tool parses TypeScript interfaces and type aliases to generate a matching GraphQL SDL schema, including support for basic nested objects.
›Is my schema data sent to a backend?
No. The conversion logic runs entirely within your browser session using local parsing libraries, so your schema definitions never leave your device.
La gente también busca
Herramientas relacionadas
More in this room.
- Validador de OpenAPI / SwaggerValida especificaciones OpenAPI 3 contra las reglas de la especificación.
- OpenAPI 3.1 YAML ⇄ JSONConvierte especificaciones OpenAPI entre YAML y JSON.
- OpenAPI → Cliente Axios TypeScriptGenera un cliente Axios tipado desde cualquier especificación OpenAPI.
- OpenAPI → React Query HooksHooks useQuery + useMutation autogenerados por cada endpoint.
- OpenAPI → Colección PostmanColección Postman v2.1 desde cualquier especificación OpenAPI.
- JSON Schema → Zod / Valibot / ArkTypeTres sabores de validador en tiempo de ejecución desde un JSON Schema.