A space to discuss GraphQL queries, mutations, troubleshooting, throttling, and best practices.
Hello,
I am not sure if I understand this correctly. We want to remove script tags when an app is uninstalled. We tested this by running the scriptTagCreate mutation in Shopify GRAPHQL App to create a script tag. And then when we uninstalled the app, the script tag is still there. Am I testing this wrong and should not create the script tag in Shopify GraphQL App? Or is there a way to uninstall the GraphQL app through code?
Thank you!
Solved! Go to the solution
This is an accepted solution.
Okay, so I got confused about the concept of Script Tag in Local app and GraphQL app. I don't need to remove script tag in GraphQL app but only need to remove it from local app. So I should really test if a script tag is created in local app by using REST API (one of many ways) instead of using the GraphQL app.
This is an accepted solution.
Okay, so I got confused about the concept of Script Tag in Local app and GraphQL app. I don't need to remove script tag in GraphQL app but only need to remove it from local app. So I should really test if a script tag is created in local app by using REST API (one of many ways) instead of using the GraphQL app.