title: How to get the exact child element with corresponding parent only from multilevel embedded MongoDB document using C#
body: <p>Trying to get exact child document with it's corresponding parent document from embedded MongoDB document using C#  but query return all the child and corresponding parent and others . how to set parameter to 
  get the exact match with Filter and findOptions. My expected result will be Channel 1 -> Episode 1 &amp; it's Child Track which id is given .
  Here is my code:</p>
  
  <pre><code>// Class
  namespace CrudWithMultilvelNestedDoc
  {
      public class Channel
      {
          [BsonId]
          [BsonRepresentation(BsonType.String)]
          public string Id { get; set; }
          public string Name { get; set; }
          public Episode[] Episodes { get; set; }
      }
  
      public class Episode
      {
          [BsonId]
          [BsonRepresentation(BsonType.String)]
          public string Id { get; set; }
          public string Name { get; set; }
          public Track[] Tracks { get; set; }
      }
  
      public class Track
      {
          [BsonId]
          [BsonRepresentation(BsonType.String)]
          public string Id { get; set; }
          public string Name { get; set; }
          public Like[] Likes { get; set; }
      }
  
      public class Like
      {
          [BsonId]
          [BsonRepresentation(BsonType.String)]
          public string Id { get; set; }
          public string Name { get; set; }
      }
  }
  
  //Code
  var chanelId = "5e4606e6ae7b090688671416";
  var episodeId = "5e46071d385a672b0cea0f86";
  var trackId = "5e460dbe2bc5e70c9cfeac21";
  
  var filter = Builders&lt;Channel&gt;.Filter.And(
               Builders&lt;Channel&gt;.Filter.Where(x =&gt; x.Id == chanelId),
               Builders&lt;Channel&gt;.Filter.Eq("Episodes._id", episodeId),
               Builders&lt;Channel&gt;.Filter.Eq("Episodes.Tracks._id", trackId));
  var result = collection.Find(filter).ToList();
  
  // Data
  {"_id":"5e4606e6ae7b090688671416","Name":"Channel 1","Episodes":[{"_id":"5e46071d385a672b0cea0f86","Name":"Episode 1","Tracks":[{"_id":"5e460dbe2bc5e70c9cfeac21","Name":"Trak 1","Likes":[{"_id":"5e4635d41f949d43a8194790","Name":"Like 1"},{"_id":"5e464e1ccfa17a25181234f6","Name":"Like 2"},{"_id":"5e464e94776dc808383326d5","Name":"Like 3"}]},{"_id":"5e4612d60747a2121870c815","Name":"Trak 2","Likes":[]}]},{"_id":"5e460851d29c1b3df4d27b7d","Name":"Episode 2","Tracks":[{"_id":"5e460e307ca6843758ce814e","Name":"Trak 1","Likes":[{"_id":"5e4686aa2813d41fa428b621","Name":"Like 1"}]}]}]}
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/PnZRa.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/PnZRa.png" alt="enter image description here"></a></p>