title: Filtering on mongodb child elements
body: <p>I have a list of parent elements that needs to be filtered based on the structure inside a child list.</p>
  
  <p>Here is the data structure </p>
  
  <pre><code>"items": [
      {
          "id": "6691e62b-90as-43b2-k1l3-2fbf039295b5",
          "details": {
              "zone": {
                  "id": "cc07de83-3m21-1pp1-a123-a98bd8fb5fb8",
                  "name": "TestName",
              }
          },
      }
  ]
  </code></pre>
  
  <pre><code>var findresult = collection(f =&gt; f.items.Any(fb =&gt; fb.details.zone.name == "TestName")).ToList();
  </code></pre>
  
  <p>Expected that only items with the matching zone name is returned but I just returns everything in the db</p>