Products/Get products Admin Graphql query doesn't return the products

Hey, I’m using this products query to fetch products data for a specific collection with matching prefix: products - GraphQL Admin

I have tried all valid search syntax:

query:“collection_id:6383838 AND title:head*”

query:“(collection_id:6383838) AND (title:head*)” and other syntax aswell, but still it doesn’t work

Are you hardcoding query or passing it in via a variable? I’d do 2 things:

  1. Check the result’s “warnings” property

  2. Post the full code and query if 1 is not helpful

Note that collection_id can be combined with title but not with everything. See: New collection_id filter added to products query filters - Shopify developer changelog

via variable:

Hey @Abdullah_Mukadam - thanks for flagging this.

I dug into this and it looks like this is a known issue on our end, and it’s the wildcard in the title filter that’s tripping it up. When collection_id and wildcard filters like title:Konic* are used together, the query can’t be resolved and comes back empty. Each filter works fine on its own. Here’s a previous thread about this for reference:

I’m going to make sure that your feedback about this is heard as well as the thread is from roughly a year ago. I still don’t have a timeline to share here, but I’m going to dig into this and see if I can surface any additional info.