title: MongoDB: Copying an array to another array in the same document
body: <p>I'm currently working on an online jewelry store with MongoDB, and I need to copy the brands contained in the "brands" array into a new array called "brandsNetherlands".         </p>
  
  <pre><code>{    
              "_id" : ObjectId("569d03b66abefa8be9c49f26"),
              "brands" : [
                      "Brand1"
                      "Brand2"
                      "Brand3"
              ],
              "name" : "Family Jewels",
              "address" : "",
              "housenr" : "",
              "postalcode" : "1234 AQ",
              "city" : "Amsterdam",
              "phone" : "+31 570 - 514200",
              "email" : "jewelry@email.nl",
              "web" : "http://www.familyjewels.nl/",
              "kind" : "horloges",
              "country" : "Nederland",
              "brandsNetherlands" : [ ]
  }
  </code></pre>
  
  <p>This is an example of the current build-up of one of the documents contained in tbe "wholesalers" collection. I need a non-static script that will allow me to move or copy the brands listed in the "brands" array into the empty "brandsNetherlands" array. Is this possible?</p>