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

Accept Documents for setOnInsert

    • Type: Icon: New Feature New Feature
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.10.0
    • Affects Version/s: 3.2.2
    • Component/s: Builders
    • None

      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.

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

              Created:
              Updated:
              Resolved: