GraphQL: Filter for products that have metafields set

Aaron33
New Member
2 0 0

I'm trying to work on reducing the time it takes to pull metafields in bulk using the GraphQL API. One place I noticed a lot of time could be saved was on products/variants that don't have any metafields set on them. Does anyone know if there's a way to only request products that have metafields set? Thanks.

Replies 2 (2)
KarlOffenberger
Shopify Partner
1873 184 890

Hi, unfortunately no, If it isn't available as a query filter, then no.

Liked this post? You might also like our fantastic upsell apps Candy Rack, Last Upsell post-purchase and Candy Cart or offer free gifts with Gift Box. All made with ❤️  and care by Digismoothie
Anjan
New Member
6 0 0

Hi ,

is there any other way to filter collection based on meta-field key?

Please suggest any other way if possible to get the data. if its using third-party i don't mind with that.

 

thanks,


@KarlOffenberger wrote:

Hi, unfortunately no, If it isn't available as a query filter, then no.