Closed seka19 closed 4 years ago
Shopify API supports passing graphql-query with variables as separate field (https://help.shopify.com/en/api/getting-started/shopify-and-graphql/variables#variables-in-curl), but here was no options to do that.
I've added new parameter to GraphQL::post() and done neccessary changes in HttpRequestGraphQL::prepareRequest() to use correct Content-type header.
GraphQL::post()
HttpRequestGraphQL::prepareRequest()
Content-type
Shopify API supports passing graphql-query with variables as separate field (https://help.shopify.com/en/api/getting-started/shopify-and-graphql/variables#variables-in-curl), but here was no options to do that.
I've added new parameter to
GraphQL::post()
and done neccessary changes inHttpRequestGraphQL::prepareRequest()
to use correctContent-type
header.