Formatters & Code
GraphQL SDL ⇄ TypeScript Types
Walk a schema, emit typed interfaces — and back again.
Redactionele opmerking
Understanding · The schema is the contract, TypeScript is the safety net.
Dit uitgebreide hoofdstuk is momenteel alleen in het Engels beschikbaar. De conversietool hierboven werkt in jouw taal; de lange uitleg is nog niet vertaald.
Veelgestelde vragen
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.
Mensen zoeken ook naar
Gerelateerde tools
More in this room.
- OpenAPI / Swagger ValidatorValideer OpenAPI 3 specs tegen de spec regels.
- OpenAPI 3.1 YAML ⇄ JSONConverteer OpenAPI-specificaties tussen YAML en JSON.
- OpenAPI → TypeScript Axios ClientGenereer een getypeerde Axios-client vanuit elke OpenAPI-specificatie.
- OpenAPI → React Query HooksAutomatisch gegenereerde useQuery + useMutation hooks per eindpunt.
- OpenAPI → Postman CollectionPostman v2.1-collectie van elke OpenAPI-specificatie.
- JSON Schema → Zod / Valibot / ArkTypeDrie runtime-validator smaken van één JSON Schema.