So I have created Shopify app using functions and Discount code created. Now when I am trying to get Discount code using Graphql it always return null. I am using “codeDiscountNode” and discount code gid to get discount code using Graphql.
Can anyone please help why it is always returning null.
Also I found that discount code created by app are returning null. If I used same graphql with other discount code (Not created by app) then it is returning results.
Which app is creating the discounts? It sounds like there could be some implementation issue related to the discounts created by an app (or permissions issue). Are there any errors being logged?
I can create discount code and discount code is applied to cart properly. Now as we have add discount code feature in admin side, I just want to edit discount code for my app and So I am trying to get discount code details using Graphql
In short I am trying to make “app.volume-discount-one.$functionId.$id.jsx” file work to edit discount code and it is not working.
I have checked and no errors logged (Screenshot below)