4 people reported
All time, since Sep 2, 2024.
Codegen rejects Admin API fields
“But I'm getting the error above from the codegen telling me that this field does not exist.”
Is this your bug? What gets counted gets fixed. Pile on.
Paste this into your agent. It files your report, with your error and version.
I hit this bug: rapsheet.dev/sheets/shopify/issues/7099/file Follow it to file my report. Show me the text before you send.
No install. No account. Public and anonymous. The link asks your agent for one report, nothing else. What it sends
Codegen rejects valid Admin API fields as not on schema. @shopify/api-codegen-preset validation fails with "Cannot query field" for fields that work when queried against the API directly.
Is this your bug?
File my report- Where
- api-codegen-preset
- Error text
Error 0: Cannot query field "menu" on type "QueryRoot".- Versions
- 1.1.1 to 1.2.1
- Platforms
- macOS
- How bad
- Breaks a normal workflow. Some reports say it blocks them completely.
Not quite your bug?
Original reports4, newest first
- GraphQL Codegen fails: translatableResource not found on QueryRootOn GitHubshopify-app-js #2958
- [api-codegen-preset] Cannot query field "delivery" on type "Cart" and more+ "discountApplication" on type "CartCodeDiscountAllocation"On GitHubshopify-app-js #1965
- [api-codegen-preset] Cannot query field "category" on type "Product"On GitHubshopify-app-js #1864
- Codegen Validation Failing with an Error /w @shopify/api-codegen-presetOn GitHubshopify-app-js #1447