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

Support automatically setting _id in Upserts.

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Icon: Minor - P4 Minor - P4
    • None
    • None
    • Codecs
    • None

    Description

      If I have a collectible codec, we could in theory set the _id for upserts that insert by automatically including it in $setOnInsert.

      Would require a change to CollectableCodec so that the `_id` generation is publicly accessible and doesn't rely on an document instance.

      Attachments

        Activity

          People

            Unassigned Unassigned
            ross@mongodb.com Ross Lawley
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: