title: Get object from mongodb c#
body: <p>Hello I am trying to query my database to get an object. I followed a guide and it seems everyone is just using a foreach on the whole collection, is this how its supposed to be done?</p>
  
  <pre><code>public void asd()
          {
              MongoClient _client = new MongoClient();
              IMongoDatabase _database = _client.GetDatabase("BlogDB");
  
              IMongoCollection&lt;Blog&gt; collection = _database.GetCollection&lt;Blog&gt;("Blog");
  
              var filter = new BsonDocument();
              var result = collection.Find(filter)
                   .Project(Blog =&gt; Blog.Posts)
                   .ToList();
              foreach (Posts post in result.FirstOrDefault())
              {
                  if (post.postid == postid)
                  {
                      //Do something with post E.g post.myfunction();
                  }
              }
          }
  </code></pre>
  
  <p>Is there no way to get only the specific post from a query?</p>
  
  <p>I tried to use a filter but collection.Find(filter) still returns a collection with my whole bsondocument. </p>