Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-2218

Handle mismatches between document fields and object fields

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.5.0
    • Component/s: Codecs
    • Labels:
      None
    • Sprint:
      JVM Sprint 38

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: