MongoDB projection on missing field on Document
<p>I am using new Mongodb C# Driver 2.2.4, I have collection where i dont have all the fields in the document. For example</p>

<pre><code>[BsonIgnoreExtraElements]
public class Category : Entity
{
    [BsonElement("name")]
    public string Name { get; set; }

    [BsonElement("title")]
    public string Title { get; set; }

    [BsonElement("description")]
    public string Description { get; set; }
}
</code></pre>

<p>Here is my query where i am only projecting name and title.</p>

<pre><code>var category = All().Where(c =&gt; c.Name == "test")
                            .Select(c =&gt; new { c.Title, c.Name })
                            .FirstOrDefault();
</code></pre>

<p>My data looks like this </p>

<pre><code>{ 
  "_id" : ObjectId("5575b9351eccba081c144433"), 
  "name" : "Sample Name", 
  "title" : "Sample Title", 
  "description" : "Sample Description"
}
{ 
  "_id" : ObjectId("5575b9351eccba081c144433"), 
  "name" : "Test", 
  "description" : "Test Description", 
}
</code></pre>

<p>Now since there is no Title with the document with Name = "Test" it throws error below.</p>

<pre><code>No matching creator found. 
</code></pre>