Skip to content

feat(codegen): GraphQL SDL export from a snapshot#491

Open
seonghobae wants to merge 1 commit into
mainfrom
feat/graphql-sdl
Open

feat(codegen): GraphQL SDL export from a snapshot#491
seonghobae wants to merge 1 commit into
mainfrom
feat/graphql-sdl

Conversation

@seonghobae

Copy link
Copy Markdown
Collaborator

Independent PR against main. Companion to #489 (ORM codegen): forward engineering to the API layer. GET /schema.graphql renders GraphQL types (bigint PK → ID!, NOT NULL → !), FK-derived object fields in both directions, and a Query root. Identifiers sanitized to valid GraphQL names with originals kept as comments — a TDD-caught bug: pascal-casing re-created digit-leading names (2faCodes). Views excluded, IDOR-safe. +4 tests; mypy clean.

🤖 Generated with Claude Code

Companion to the ORM codegen (#489): forward engineering to the API layer. GET /api/snapshots/{uuid}/schema.graphql renders GraphQL types (bigint PK -> ID!, nullability -> !), FK-derived object fields both directions, and a Query root. Identifiers sanitized to valid GraphQL names ([_A-Za-z][_0-9A-Za-z]*) with originals kept in comments — TDD caught a digit-leading pascal-case bug (2faCodes). Views excluded, IDOR-safe. +4 tests; suite 227; mypy clean.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AxU2xaupAjp912oDNFuWyd
@seonghobae seonghobae enabled auto-merge (squash) July 6, 2026 08:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant