We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello, With Shopify API version 2025-01, calling a GraphQL query no longer works:
Unsupported Content-Type header, use application/json
Indeed, since 2025-01, the Content-Type header application/graphql is deprecated (https://shopify.dev/changelog/content-type-application-graphql-is-deprecated).
In the file HttpRequestGraphQL.php, line 53, the Content-Type is forced to application/graphql.
It works fine by removing the if/else and putting only:
self::$postDataGraphQL = json_encode(['query' => $data, 'variables' => $variables]); self::$httpHeaders['Content-type'] = 'application/json';
Thanks
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hello,
With Shopify API version 2025-01, calling a GraphQL query no longer works:
Indeed, since 2025-01, the Content-Type header application/graphql is deprecated (https://shopify.dev/changelog/content-type-application-graphql-is-deprecated).
In the file HttpRequestGraphQL.php, line 53, the Content-Type is forced to application/graphql.
It works fine by removing the if/else and putting only:
Thanks
The text was updated successfully, but these errors were encountered: