title: c# mongodb find array of objects
body: <p>i want to retrieve an array of objects in my document. In the shell i use this:</p>
  
  <p><code>db.products.findOne({ProductId : 1}).Seller</code></p>
  
  <p>In C# this is the structure of my classes</p>
  
  <pre><code>public class Product
  {
      public double ProductId { get; set; }
      public string ProductName { get; set; }
      public string PurchaseDate { get; set; }
      public double Price { get; set; }
      public List&lt;Seller&gt; Seller { get; set; }
  }
  
  public class Seller
  {
      public double SellerId { get; set; }
      public string SellerName { get; set; }
  }
  </code></pre>
  
  <p>What is the equivalent command in mongodb.net driver?</p>
  
  <p><code>db.products.findOne({ProductId : 1}).Seller</code></p>
  
  <p>I expect the Output to be :</p>
  
  <pre><code>[
      {
          "SellerId" : 123,
          "SellerName" : "ABC"
      },
      {
          "SellerId" : 345,
          "SellerName" : "MGJ"
      }
  ]
  </code></pre>
  
  <p>Please see attached image <a href="https://i.stack.imgur.com/WMOLu.png" rel="nofollow noreferrer">output img</a></p>