📅  最后修改于: 2022-03-11 15:02:51.603000             🧑  作者: Mango
PersonModel.update(
{ _id: person._id },
{ $push: { friends: friend } },
done
);
// if you want unique items only
PersonModel.update(
{ _id: person._id },
{ $addToSet: { friends: friend } }
);