Database

[{"orders":[1],"carts":[2]}]

Query

db.collection.update({},[{$set:{orders:{$concatArrays:["$orders","$carts"]},carts:[]}}])

Result