Hello,
I’am trying to update the meteors.user.profile
Actualy it looks like this :
email : {}
username : xxx
_id : xxxx
profile : {
a : {},
b{}
}
And i want to add data in profile.a ( {user : xxxxx,date: xxxx}
)
I’ve tried this :
Meteor.users.update({_id:userId},{$addToSet:{profile.a:object}});
but i get an error, how can i do this ?
Thank’s in advance for your help