Unexpected results with GraphiQL in shop

Unexpected results with GraphiQL in shop

bgvo
Visitor
1 0 0

I installed Shopify GraphiQL app in my test store. 

 

I know the store has already some scriptags that I created. The REST request returns the list of Scripttags. However, trying to retrieve the same list through GraphQL comes out empty:

 

bgvo_0-1628520001490.png

 

This query is being run from the Shopify GraphiQL app inside the store. What am I doing wrong?

 

Thanks.

Reply 1 (1)

GrahamS
Shopify Staff (Retired)
193 37 54

Hello @bgvo ,

Is your REST client that is seeing ScriptTags returned also responsible for having created those tags? This could be a case of the ScriptTags being scoped to the app that created them (very similar to webhooks), in which case they wouldn't be returned when called via the admin GraphQL app

To learn more visit the Shopify Help Center or the Community Blog.