我正在尝试向用户集合添加一个附加字段。
我设置了正确的update
权限。
//called in my template event handler for a form post
Meteor.users.update(Meteor.userId(), { $set: { company: company._id }});
但是,每当我访问 Meteor.user() 时,我都看不到公司字段?
我已经尝试设置一个 pub/sub,但我仍然没有任何运气来检索该字段。
有什么想法吗?