It seems like an omission that product tags are not included in the ProductFragment query.
Any chance we'll get "tags" array in ProductFragment?
I think the reason they keep tags excluded from the ProductFragment is because the more fields you add the slower the resulting graph query becomes.
As a workaround (what I'm doing), you can use the unoptimized version of the library and then add the tags yourself.
I agree that tags should be baked in. I think that custom queries should only be needed with more complicated use-cases, such as accessing 3rd-party product metadata, however right now you have to use a custom query for the pretty default case of tags.
+1
Seems reasonable to expect that information entered in the inventory UI would be available by default.
was super annoyed at this so I published this here. Everything is exactly the same excepts that tags is now in the product fragment
https://www.npmjs.com/package/shopify-buy-with-tags
yarn add shopify-buy-with-tags
Will republish to keep up to date with this repo.
How possibly this is still not supported? 馃槕
Most helpful comment
I agree that tags should be baked in. I think that custom queries should only be needed with more complicated use-cases, such as accessing 3rd-party product metadata, however right now you have to use a custom query for the pretty default case of
tags.