GraphQL: Filter for products that have metafields set

GraphQL: Filter for products that have metafields set

Aaron33
Visitor
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 901

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

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.