Closed MyOrk64 closed 2 weeks ago
@MyOrk64 Variables in variable definition part are rreplaced by requestVariableReplacer. Unfortunatly the gql query body is only added to the body after this replaced and this does prevent variable replacement. I added explicit replacing of variables for gql query body. Fixed with next release
Hi, i am testing the shopify graphQL-API. I can use variables in header, request, but not in everywhere in the body. A simple query is runnung into errors because {{sku}} is not replaced its value. Error message from Shopify: "Invalid global id 'gid://shopify/Product/{{sku}}'". Suprisingliy it is, when i use it in the graphQL variable definition area. I've tried "{{sku}}", \{\{sku\}\}, `$(sku))` , `"$(sku))"` ... and so on,
Why is it not working in the query definition, but working with variable definitions message part of the body?