Graph Ql query for filtering the products having specific tag

{
    products(first: 250, query: "tag:'discount_'") {
        edges {
            node {
                id
                title
                handle
                tags
            }
        }
    }
}

when I try to query the data having “discount_” substring in a tag, it returns null data, but there are products having the given tag.

Hi @bicky

Try it

"tag:*(discount_)*"

1 Like

Thank you so much Kani !, this query worked 100%.

1 Like