gatsby-source-shopify does not show allShopifyArticle to query with graphql with no blogs #29777
Unanswered
jordanpsleeper
asked this question in
Help
Replies: 1 comment 1 reply
-
Update: new insight in next post. Hi jordanpsleeper, Part of working with GraphQL is of course its dynamic nature. I've found quite some articles complaining about this. What you could do is launch an introspection query into GraphQL to find out whether the type exists:
Would result in:
However the Hope this helps you in the right direction. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Working with a gatsby site that feeds multiple shopify stores and using this plugin, if the shopify store doesn't have any active or visible articles the graphql allShopifyArticle is not available to query.
This throws error on stores that haven't used their blogs yet. Is this the intended behavior or is there a work around for testing if allShopifyArticle exists before trying to use it?
Beta Was this translation helpful? Give feedback.
All reactions