标签: mongodb
如何进行以下操作?插入操作是否可行(不要求更新)?
var items = db.items.find({}); var bulkShopInsert = db.shop.initializeUnorderedBulkOp(); bulkShopInsert.insert({ 'shopName' : 'My shop', 'items' : items <- here is what I would like to achieve });