A space to discuss GraphQL queries, mutations, troubleshooting, throttling, and best practices.
I'm trying to query my scripttags. This query works in the console:
https://example.myshopify.com/admin/apps/shopify-graphiql-app
Solved! Go to the solution
This is an accepted solution.
Figured it out! Sometimes it pays to read all of the docs!
https://help.shopify.com/en/api/reference/online-store/scripttag#index
Script tags are scoped to the app that created them. When an app is uninstalled from a shop, all of the script tags that it created are automatically removed along with it.
I was expecting to see the scripttags added by another app in my query.
Tried uninstalling/reinstalling?
Thanks for the response. I did reinstall the app and restart the server.
Below is the result. I also added added read_theme and write_theme to the access scopes. No luck.
{ "shop": { "name": "example", "primaryDomain": { "url": "https://example.myshopify.com", "host": "example.myshopify.com", "__typename": "Domain" }, "__typename": "Shop" }, "scriptTags": { "edges": [], "__typename": "ScriptTagConnection" } }
I'm going to try enabling all access scopes temporarily.
This is an accepted solution.
Figured it out! Sometimes it pays to read all of the docs!
https://help.shopify.com/en/api/reference/online-store/scripttag#index
Script tags are scoped to the app that created them. When an app is uninstalled from a shop, all of the script tags that it created are automatically removed along with it.
I was expecting to see the scripttags added by another app in my query.
@garrettbryan i hope you can help me on it, I try with graphql pay ground but still not output.
using the API i can see the successfully request is done.
here is my question https://community.shopify.com/c/shopify-apis-and-sdks/how-to-create-script-tag-use-of-graphql/td-p/1...