Skip to content

Add parameter $variables to the GraphQL::post() #109

New issue

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

Merged
merged 1 commit into from
Dec 7, 2019

Conversation

seka19
Copy link
Contributor

@seka19 seka19 commented Aug 21, 2019

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.

@tareqtms tareqtms merged commit c10fc0b into phpclassic:master Dec 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants