'CommerceTools GraphQl query

I am trying to run this query in react app , I am using using apollo client, It run successfully but does give me expected result. My Query

{
  productProjectionSearch(filters: {string: "categories.id:\"011d3888-27be-4d11-bf1e-4e3ccb737c8b\""}, fuzzy: true) {
    count
    results {
      categories {
        id
      }
      version
      published
      name(locale: "en")
    }
  }
}

My react apollo client query

query {
    productProjectionSearch(
      filters: {
        string: categories.id:${'011d3888-27be-4d11-bf1e-4e3ccb737c8b'}"
      }
      fuzzy: true
    ) {
      count
      results {
        categories {
          id
        }
        version
        published
        name(locale: "en")
      }
    }
  }

it does not give me expected result , it's not considering the id which I input i.e. string: categories.id:${'011d3888-27be-4d11-bf1e-4e3ccb737c8b'}"



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source