Commit 5da3ba2
fix: restore documentMode 'string' default — graphql-tag not needed
Reverting the removal of documentMode: 'string'. With 'string' mode,
the generic-sdk plugin uses plain string type for documents instead of
DocumentNode, so graphql-tag is NOT required as a dependency.
The TypedDocumentString class was never needed — that was our mistake.
The generic-sdk with documentMode: 'string' + rawRequest works correctly
with plain strings, no class injection needed.
Without this default, codegen falls back to 'graphQLTag' mode which
requires the graphql-tag package, breaking builds.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 09ddce2 commit 5da3ba2
File tree
3 files changed
+6
-4
lines changed- src/core/codegen
- tests/unit/codegen
3 files changed
+6
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| 61 | + | |
61 | 62 | | |
62 | 63 | | |
63 | 64 | | |
| |||
83 | 84 | | |
84 | 85 | | |
85 | 86 | | |
86 | | - | |
87 | | - | |
| 87 | + | |
| 88 | + | |
88 | 89 | | |
89 | 90 | | |
90 | 91 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
507 | 507 | | |
508 | 508 | | |
509 | 509 | | |
510 | | - | |
511 | | - | |
| 510 | + | |
| 511 | + | |
512 | 512 | | |
513 | 513 | | |
514 | 514 | | |
| |||
0 commit comments