No SEO fields? #32095
Replies: 6 comments
-
in the main graphql under shopify Im able to query it. |
Beta Was this translation helpful? Give feedback.
-
This is a good catch and it's not very intuitive. I was able to get the seo field to show up by manually editing one of the SEO field data in Shopify. Once I manually edited one of the products, that field now shows up: This still seems like it might be a bug, though we will need to do some additional digging because this may be a problem with Shopify's admin API. It doesn't appear that Shopify is populating the default generated SEO data through the API. |
Beta Was this translation helpful? Give feedback.
-
@smthomas thanks for the reponse let me try this :) |
Beta Was this translation helpful? Give feedback.
-
This must be the result of using inference to determine which fields are defined on a node type. If there aren't any nodes with this SEO data, the schema doesn't know about it. We should consider being explicit with our schema field definitions rather than relying on inference, since that will add clarity to cases like these. |
Beta Was this translation helpful? Give feedback.
-
As a note, if you don't have the Online Store sales channel (aka you're using the "Shopify Lite" plan), I don't believe you can edit these fields without using the API. |
Beta Was this translation helpful? Give feedback.
-
Referring to what @smthomas mentioned, even you're being explicit with the schema, it looks like Shopify's API doesn't provide the data for the SEO fields unless it's been manually modified at least once (I've only tested this with a collection description). The default SEO description will match what the shop owner adds to the normal description when the product is first created. Even though it exists, it's not pulled in through the API. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi may I know how to get the SEO fields? thanks

Beta Was this translation helpful? Give feedback.
All reactions