Skip to content

v1.3.0 — GraphQL SDL Format Support

Choose a tag to compare

@Coding-Dev-Tools Coding-Dev-Tools released this 15 May 07:58
· 142 commits to master since this release

v1.3.0 — GraphQL SDL Format Support

New Format: GraphQL SDL (9th format)

SchemaForge now supports GraphQL Schema Definition Language as a first-class format:

  • Parse files with type definitions, enums, input types, directives
  • Generate clean SDL with proper non-null (!) annotations
  • Full roundtripping through the internal representation
  • Cross-format conversion with all 8 existing formats

Parser

  • GraphQLParser: handles type, enum, input, scalar definitions
  • Supports @unique, @default, @id directives
  • Handles nullable (!), list types ([Type]), and nested type references
  • Ignores Query/Mutation/Subscription root types

Generator

  • GraphQLGenerator: produces clean SDL from Schema IR
  • Automatic ID type for primary-key id columns
  • Proper non-null annotations (!) for required fields
  • Enum definitions with values list
  • Custom scalar declarations

CLI

  • --from graphql and --to graphql now available
  • 9 formats total: sql, prisma, drizzle, typeorm, django, sqlalchemy, alembic, json_schema, graphql

Testing

  • 16 new tests: parsing, generation, roundtrip, cross-format
  • Fixture file: fixtures/sample.graphql
  • Total: 205 tests passing