Shopify / shopify-api-ruby

ShopifyAPI is a lightweight gem for accessing the Shopify admin REST and GraphQL web services.
MIT License
1.05k stars 468 forks source link

Add debug option to GraphQL requests #1327

Closed paulomarg closed 2 months ago

paulomarg commented 2 months ago

Description

Currently, the GraphQL client doesn't allow adding the ?debug=true search parameter when making requests, which enables Shopify to better debug those requests.

This PR adds support for that parameter to the query method in the GraphQL clients.

How has this been tested?

Unit tests locally, and investigating logs in an actual app to ensure the parameter was there.

Checklist: