How can I find products by template suffix using REST API or GRAPHIQL API?

Hi

I need to to query one ( or many) products by template suffix. But after some hours of research, I haven’t found any way to do its via REST API or GRAPHIQL API, so is there any idea so I can do it properly ( in case I don’t want to store list assigned product with template in database )

Hi,

I don’t think there is any api call to get products by template_suffix. What you can do instead:

  1. Get all the products
  2. Loop through those products and do what you want with the template_suffix

I also really need the ability to filter products by theme templates or template suffix. :disappointed_face: