title: Unknown discriminator value MongoDB
body: <p>I basically want a collection that saves multiple types of objects/documents but all of them inherit from a base interface.. However, I am keep getting this exception when loading:  </p>
  
  <p><code>Additional information: An error occurred while deserializing the Inventory property of class Character: Unknown discriminator value 'TestItem'.</code></p>
  
  <p>Here is my codes: </p>
  
  <pre><code>public class Character
  {
      ...
      public List&lt;IInventoryItem&gt; Inventory { get; set; }
      ...
  }
  
  public interface IInventoryItem
  {
  ...
  }
  
  class TestItem : IInventoryItem
  {
  ...
  }
  </code></pre>
  
  <p>Help is very appreciated.</p>