How can I filter automatic discounts based on their title using GraphQL?

I have a query that returns automatic discounts of a store. Is there a way that I can filter out the discounts based on the title of that discount? I have seen that there is a way you can use filter in case of products by using products(first: 10, query: “title:title”). When I used title:** it is giving me all the discounts. This is my query for fetching the discounts:

{
automaticDiscountNodes (first: 10, query:"status:active") {
  edges {
    node {
      id
      automaticDiscount {
        __typename
        ... on DiscountAutomaticBxgy {
          status
          title
        }
        ... on DiscountAutomaticBasic {
          status
          title
        }
      }
    }
  }
 }
}