A space to discuss GraphQL queries, mutations, troubleshooting, throttling, and best practices.
Solved! Go to the solution
This is an accepted solution.
I found the solution. I don't need to assign the await to a new variable. the update:true will update the price_rule variable with the newly created id.
This works and returns an id i can pass into the create discount code:
This is an accepted solution.
I found the solution. I don't need to assign the await to a new variable. the update:true will update the price_rule variable with the newly created id.
This works and returns an id i can pass into the create discount code:
Glad you figured this out and thanks for coming back to post your solution!
Liam | Developer Advocate @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog