How can I search for digital products by variant values on my storefront?

I am building a store that sells digital products and so far I have:

  • I use the Product type to set whether it’s a Game, Software, App, etc

  • I use the tags to set the genre of the game, type of the app, etc

  • Then I have set an option in “Options” that defines on which platform the digital product runs on (some products can run on multiple platforms, different prices though).

I am using Hydrogen to build the storefront and I’ve been successful in:

  • searching for products by their title

  • search for products by their genre / type using their tags

with the following query:

query getProductsByTerms {
  products(first: 10, query: "title:*fifa* AND tag:adventure AND product_type:Game") {
    edges {
      node {
        id
        title
        productType 
        options {
          id
          name
          values
        }
        featuredImage {
          url
        }
        priceRange {
          minVariantPrice {
            amount
            currencyCode
          }
        }
        tags
      }
      cursor
    }
    pageInfo {
      endCursor
      hasNextPage
      hasPreviousPage
      startCursor
    }
  }
}

However, I am unable to find a way to search products by “Platform”, eg. list all products with product_type = “App” and “ios” for Platform.

Is there a way to search for products by their variant values?