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

Cannot use BasicDBList as value with Updates builder methods

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • 3.5.0
    • 3.0.0
    • Codecs
    • None

    Description

      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

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: