0
在流星我使用的是accountsGoogle
包。我試圖在我的網站上使用Google個人資料圖片,但一旦刪除autopublish
包,我需要發佈並訂閱用戶集合的Google部分。我會如何去做這件事?accountsGoogle發佈個人圖片
Meteor.publish('users', function(){
return Meteor.user.services.google.find({});
});
'Meteor.user()'不返回用戶集合的services.google部分,除非安裝了autopublish。 – James
在我的app上,autopublish被移除,Meteor.user()返回整個文檔 – tandrieu