Skip to content

fix(update-doc): move createDocBlocks to dev schema, fix codegen#296

Open
LinoyMargan wants to merge 2 commits intomasterfrom
fix/update-doc-codegen-dev-schema
Open

fix(update-doc): move createDocBlocks to dev schema, fix codegen#296
LinoyMargan wants to merge 2 commits intomasterfrom
fix/update-doc-codegen-dev-schema

Conversation

@LinoyMargan
Copy link
Copy Markdown
Collaborator

Summary

  • createDocBlocks mutation and its associated types (CreateBlockInput, TextBlock, BlockAlignment, etc.) were living in production-schema files but only exist in the dev schema, causing codegen to fail with 10 validation errors
  • Moved createDocBlocks to a new update-doc-tool.graphql.dev.ts file
  • Updated imports in update-doc-tool.ts and update-doc-tool.helpers.ts to point to graphql.dev/ generated types
  • Added versionOverride: 'dev' to the createDocBlocks API request (required for dev-schema mutations)
  • Regenerated both graphql/ and graphql.dev/ type files — codegen now passes cleanly

Monday Item

https://monday.monday.com/boards/18404309029/pulses/11637822468

Test Plan

  • npm run codegen — both schemas generate with all [SUCCESS], no [FAILED] lines
  • npm run build — builds cleanly
  • npm test — all 759 tests pass across 30 suites

🤖 Generated with Claude Code

LinoyMargan and others added 2 commits April 12, 2026 11:37
createDocBlocks and its associated types (CreateBlockInput, TextBlock,
BlockAlignment, etc.) only exist in the dev schema but were defined in
.graphql.ts files validated against the production schema, causing codegen
to fail with 10 errors.

- Move createDocBlocks mutation to update-doc-tool.graphql.dev.ts
- Import CreateDocBlocksMutation/Variables from graphql.dev/graphql
- Import all dev-only types in helpers from graphql.dev/graphql
- Add versionOverride: 'dev' to the createDocBlocks API request
- Regenerate both graphql/ and graphql.dev/ type files

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Run prettier on update-doc-tool files after codegen fix.

Monday: https://monday.monday.com/boards/18404309029/pulses/11637822468

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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