How to use fuzzy search with GraphQl

There is not document about fuzzy search with GraphQl. ( If I’m wrong please paste link let me know 😜

For example, I have some products tagged by discount_20discount_30discount_40……

What we usually do to search products via tag?

1
2
3
4
5
6
7
8
9
10
11
12
{
products(first: 250, query: "tag:'discount_'") {
edges {
node {
id
title
handle
tags
}
}
}
}

However, this query won’t work, as it will only return products tagged by discount_

So we need edit query to tag:*(discount_)*

1
2
3
4
5
6
7
8
9
10
11
12
{
products(first: 250, query: "tag:*(discount_)*") {
edges {
node {
id
title
handle
tags
}
}
}
}