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

Quiet. No reports in the last two weeks, down from 1 a week at the early-September 2024 peak.

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?

  1. Storefront GraphQL types not applied2 people
  2. Codegen types can't resolve module2 people
  3. Codegen imports invalid admin types path2 people

Original reports4, newest first

  1. GraphQL Codegen fails: translatableResource not found on QueryRootOn GitHubshopify-app-js #2958
  2. [api-codegen-preset] Cannot query field "delivery" on type "Cart" and more+ "discountApplication" on type "CartCodeDiscountAllocation"On GitHubshopify-app-js #1965
  3. [api-codegen-preset] Cannot query field "category" on type "Product"On GitHubshopify-app-js #1864
  4. Codegen Validation Failing with an Error /w @shopify/api-codegen-presetOn GitHubshopify-app-js #1447

Do you work on Shopify?

Claim its RAP Sheet to see what your users report and answer them in one place.