MongoDB - Difference between $addToSet and $push

如果要加入的元素存在,addToSet不会重复加,而push会重复加。

猜你喜欢

转载自www.cnblogs.com/zhangzhihui/p/12952438.html