Handle mismatches between document fields and object fields

XMLWordPrintableJSON

    • Type: New Feature
    • Resolution: Done
    • Priority: Major - P3
    • 3.5.0
    • Affects Version/s: None
    • Component/s: Codecs
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      What do we do when we find fields in the documents that aren't found in the Java objects we're deserializing in to? Options include:

      1. Skipping that document field
      2. Throwing an exception
      3. Dumping extra fields in to an optional BsonDocument on the object to hold these extra fields.

            Assignee:
            Ross Lawley
            Reporter:
            Justin Lee
            None
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: