Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Issue with Storefront API Schema Versioning

Issue with Storefront API Schema Versioning

y_ikeda
Shopify Partner
3 0 1

Hi.

 

I’m using the "https://shopify.dev/storefront-graphql-direct-proxy/${API_VERSION}" endpoint to retrieve the Storefront GraphQL Schema. It seems that this endpoint has stopped considering the version for about a week now.

 

We're in the process of migrating from the Checkout API to the Cart API, but the returned schema doesn't include the Checkout API, causing the code generation to fail.

Is there a solution for this?

Additionally, is it correct that posting an empty JSON instead of an IntrospectionQuery returns the schema?

 

Example:

 

$ curl -X POST 'https://shopify.dev/storefront-graphql-direct-proxy/2024-04' \
-H 'Accept: application/graphql-response+json, application/json, multipart/mixed' \
-H 'Content-Type: application/json' \
-d '{}' > a

$ curl -X POST 'https://shopify.dev/storefront-graphql-direct-proxy/2024-07' \
-H 'Accept: application/graphql-response+json, application/json, multipart/mixed' \
-H 'Content-Type: application/json' \
-d '{}' > b

$ diff a b

 

Thanks

 

Replies 0 (0)