How to read a Mongo Document and save it to an object?
<p>I need to read certain fields in documents from Mongo. I filtered out a document using the <code>Filter.EQ()</code> method but how can I find and store a field in that document? This is my code:</p>

<pre><code>public void human_radioButton_Checked(object sender, RoutedEventArgs e)
    {
        Upload human = new Upload(); //opens connection to the database and collection

        var filter = Builders&lt;BsonDocument&gt;.Filter.Eq("name", "Human");
        race_desc description = new race_desc();
        description.desc = Convert.ToString(filter);
        desc_textBox.Text = description.desc;
</code></pre>

<p>However, this doesn't work since I didn't grab any fields, just the document. So how can I read a field called <code>'A'</code> and store it into an object?</p>

<p>Thanks</p>