App reviews, troubleshooting, and recommendations
Hello,
I am trying to make a grapghql api call using this tutorials
https://github.com/Shopify/shopify-api-php/blob/main/docs/usage/graphql.md
But when I make the request I get this error for each call, could any please help me with what I can doing wrong. Attaching the log file and code screenshot https://prnt.sc/OBaUW4_YADyV this screenshot is from my fresh app as I can not share the real app code.
The error is:
{ "errors": [ { "message": "Variable $input of type ProductInput! was provided invalid value", "locations": [ { "line": 1, "column": 24 } ], "extensions": { "value": [ { "title": "TARDIS" }, { "descriptionHtml": "Time and Relative Dimensions in Space" }, { "productType": "Time Lord technology" } ], "problems": [ { "path": [], "explanation": "Expected [\"{\\\"title\\\"=>\\\"TARDIS\\\"}\",\"{\\\"descriptionHtml\\\"=>\\\"Time and Relative Dimensions in Space\\\"}\",\"{\\\"productType\\\"=>\\\"Time Lord technology\\\"}\"] to be a key-value object responding to `to_h` or `to_unsafe_h`." } ] } } ] }
Thanks in advance.
Regards
Aman Batra
Transform this holiday season into a shopping spree. Plus, learn how to effortlessly open ...
By Jasonh Dec 8, 2023Make the shift from discounts to donations, and witness your business not only thrive fina...
By Holly Dec 4, 2023On our Shopify Expert Marketplace, you can find many trusted third party developers and fr...
By Arno Nov 27, 2023