更新时间:2023-02-14 22:39:42
是的,该错误会导致您向错误的方向发送信息.无论如何,您在对象上使用$addToSet
.这样做:
Yeah, that error kinda sends you in the wrong direction. Regardless, you're using $addToSet
on an object. Do this:
Meteor.users.update(currentUserId, {$set: addressDetails.address}