Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
目前我正在将关联属性设置为,null但这在某些情况下会引发异常?
null
例如。
Profile.update({user: user.id}, {user: null}, function (err, profiles) {});
有没有正确的方法来做到这一点?
这是正确的方法。1:1 关联的 PubSub 实现中存在一个错误,现已修补,因此今后您应该不会看到任何异常。