揮発性のメモ2

http://d.hatena.ne.jp/iww/

2020-10-24から1日間の記事一覧

MongoDBで、配列の要素数を減らす

> db.controltable.findOne({ id: 123 }) { "_id" : ObjectId("xxxxxxxxxxxxxxxxxxxxxxxx"), "id" : 123, "name" : "ほげ", "control" : { "within" : [ "Alpha", "Bravo", "Charlie", "Delta" ] } } .control.within[] の配列の長さを短くしたい $pop をつ…