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

Accept Documents for setOnInsert

    XMLWordPrintableJSON

Details

    • Icon: New Feature New Feature
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 3.10.0
    • 3.2.2
    • Builders
    • None

    Description

      Updates.setOnInsert just accepts (String, TItem) as arguments. I think it would be developer friendlier to accept a Document, too.

      Add Updates.setOnInsert(Bson Items) as well for multiple fields that need to be set on insert.

      Attachments

        Activity

          People

            ross@mongodb.com Ross Lawley
            ChampS Ben [X]
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: