mongoose在子文档的array里update或insert

$addToSet 可以给嵌套结构中文档的array中添加对象
$pull则是删除

猜你喜欢

转载自www.cnblogs.com/129TL/p/10832979.html