A space to discuss GraphQL queries, mutations, troubleshooting, throttling, and best practices.
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