Optimizely Graph .NET client - nested logic clauses

Vote:
 

Hello, I'm working on improving the search experience on a page that is based on Optimizely Graph and I'm struggling with .NET client API to achieve the expected query.

I want to have nested logical operators like in the example below which works nicely when executed in the admin panel, but I'm not able to achieve the same result using Linq extension methods and the documentation is missing any example about how to do that. Could you please help me with that or provide an example of how to nest in a.a NET client? 

WHERE: A1 && (B1 || B2)

    where: {
      _and: [
        {
          _or: [
            { _fulltext: { match: "Query_Text" } }
            { Name: { fuzzy: false, boost: 10, match: "Query_Text" } }
          ]
        }
        {
          ContentType: {
            in: [
              "Page1TypePage",
              "Page2TypePage"
            ]
          }
        }
      ]
#330493
Sep 25, 2024 9:46
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.