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

Cannot use BasicDBList as value with Updates builder methods

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 3.5.0
    • Affects Version/s: 3.0.0
    • Component/s: Codecs
    • Labels:
      None

      If you use the Updates class in this way Updates.set("array", value) where value is a BasicDbList Object the result of the insert is

      {
      "_id" : "ID",
      "array" :

      { "0" : 100, "1" : 200, "2" : 400 }

      }

      The list BasicDBList is now a document instead of a list

            Assignee:
            jeff.yemin@mongodb.com Jeffrey Yemin
            Reporter:
            giordanomaestro Giordano Maestro
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: