title: What is the best way to query information out of a collection from within a document in RavenDB
body: <p>For example say I have the following class</p>
  
  <pre><code>public class Parent
  {
      public string Id { get; set; }
      public string Name { get; set; }
  
      public IList&lt;Child&gt; Children { get; set; }
  
      public class Child
      {
          public string Name { get; set; }
          public DateTime Date { get; set; }
      }
  }
  </code></pre>
  
  <p>And the following document  </p>
  
  <pre><code>var document = new Parent
  {
      Id = "parent/1",
      Name = "1",
      Children = new List&lt;Parent.Child&gt;
      {
          new Parent.Child {Date = new DateTime(2013, 1, 2)},
          new Parent.Child {Date = new DateTime(2013, 1, 3)},
          new Parent.Child {Date = new DateTime(2013, 1, 4)},
      }
  };
  </code></pre>
  
  <p>How do I:</p>
  
  <ol>
  <li>Ask RavenDB to give me the instance of Child with date 2013/1/4 without sending the whole document over?</li>
  <li>Profile my query to make sure I am doing the correct thing?</li>
  </ol>