Js-buy-sdk: Add "tags" to ProductFragment

Created on 4 Jun 2020  路  5Comments  路  Source: Shopify/js-buy-sdk

tags in ProductFragment

It seems like an omission that product tags are not included in the ProductFragment query.

Any chance we'll get "tags" array in ProductFragment?

enhancement

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.

All 5 comments

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? 馃槕

Was this page helpful?
0 / 5 - 0 ratings