Is it possible to have an optional variable in a Content Fragment GraphQL query
I'm looking for a way to have an optional filter on graphql persisted queries for content fragments. It seems like it was possible at one point to define a variable for the query and, if it had no value, the filter would be ignored and all results would be returned. This is exactly the functionality I'm looking for but it doesn't seem to work that way anymore. If I omit the variable now the query returns results where the filtered-on property is null.
GraphQL itself has REGEX queries which would solve the problem nicely but the AEM API for content fragments doesn't have that.
Does anyone know how to get this optional filter functionality?
https://experienceleague.adobe.com/en/docs/experience-manager-65/content/assets/extending/graphql-api-content-fragments#filtering
