App reviews, troubleshooting, and recommendations
Hi, I'm trying to use the GraphQL productvariants api to search for products where the SKU starts with a certain string, let's say ABC_DEF-. My query is like this :
{
productVariants(first: 10, query: "sku:ABC_DEF-*") {
edges{
node{
id
sku
}
}
}
}
This doesn't return any result. If I put a valid SKU like ABC_DEF-1234, instead of ABC_DEF-*, it does return the correct product, so there are products with my SKU prefix.
How can I get all products with a certain sku prefix ?
Thanks in advance
Thanks, but that doesn't help in my case. I'm have an external app that update products' inventory levels. It's not used inside liquid code.
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025