Add shopify model fields

Hello, I wan to get seo field for product, blogs, collection, pages and articles. Currently if I add them to the shopify fields in the schema.ts I get an error saying that is invalid. My solution was to add a query to shopify api and fill this data when create and update model actions get called. Am I missing something is there a easier way to do it so this data comes with the hook call instead of having to request additional data on the action?
2 Replies
Chocci_Milk
Chocci_Milk2w ago
Hello, We have to add support for the fields. Adding them to the schema won't wire anything up on our end unfortunately. Let me investigate a little to see if we could easily add these fields in for you Looks like collection already has the SEO field (type json) Looks like we've only forgotten the SEO field from the product model. Collection should already have it
Lianjan
LianjanOP2w ago
oh right thanks for checking, I was looking a product first, so makes sense.

Did you find this page helpful?