title: How can I replace an object in mongodb without specifying a filter using the C# driver?
body: <p>I am using the C# driver 2.0. I have a POCO that I am storing in mongo that looks like this:</p>
  
  <pre><code>public class TestObject
  {
       [BsonId]
       public Guid Id { get; set; }
       public string Property1 { get; set; }
  }
  </code></pre>
  
  <p>I am storing the object using a generic method like this:</p>
  
  <pre><code>public async void Insert&lt;T&gt;(T item)
  {
          var collection = GetCollection&lt;T&gt;();
  
          await collection.InsertOneAsync(item);
  }
  </code></pre>
  
  <p>I would like to have a similar method to Update an object. However, the <code>ReplaceOneAsync</code> method requires a filter be specified.</p>
  
  <p>I would like to simply update the same object, based on whatever the <code>[BsonId]</code> property is. Any one know if this is possible?</p>