-
Notifications
You must be signed in to change notification settings - Fork 138
Cannot query field "images" on type "ShopifyProduct". #66
Comments
Hi! I'm not entirely sure why you would be seeing that error, but do all your products have images on them? This starter uses GraphQL schema inference and might show an error like that if there are no images coming from Shopify |
Hey ! thanks for the comment . I fixed it by using featuredImage instead of images to fetch data ! |
i believe there are some graphql deprecations using this starter |
If you updated the gatsby-source-shopify plugin to the latest version with NPM you'll hit this problem. It's covered in the migration from V6 to V7 section of their Github readme. They changed images to media to allow for different things like video and 3d models. |
@zachatkinson what version of npm do you recommend using? |
@Mithrandiirr Can you share what your new graphQL query looks like for the media images? |
Why i cannot query images in graphql , i am using fragment :
eventually i get the error
error Cannot query field "images" on type "ShopifyProduct". Did you mean "tags"? graphql/template-strings
gatsby-config.js:
The text was updated successfully, but these errors were encountered: