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

Handle mismatches between document fields and object fields

    XMLWordPrintableJSON

Details

    • Icon: New Feature New Feature
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 3.5.0
    • None
    • Codecs
    • None

    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

        Activity

          People

            ross@mongodb.com Ross Lawley
            justin.lee Justin Lee
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: