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
Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024