Commit 2032a0c
authored
fix: exclude external service documents from main client type generation (#31)
External service document files were being incorrectly included in the main
client type generation and validated against the local server schema, causing
validation failures when external service queries referenced fields not present
in the local schema.
This fix enhances the scanDocs function to filter out documents that match
external service document patterns, ensuring they are only validated against
their respective external schemas.
Resolves GraphQL Document Validation errors like:
- Cannot query field "countries" on type "Query"
- Cannot query field "country" on type "Query"1 parent 9d416cb commit 2032a0c
1 file changed
+26
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
176 | | - | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
177 | 182 | | |
178 | 183 | | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
179 | 204 | | |
180 | 205 | | |
181 | 206 | | |
| |||
0 commit comments