I want to update email address in meteor by :
Meteor.users.update(this._id, {$set: {"emails[0].address": "deleted_" + preEmail }});
but instead of updating email array, 0 argument, then address ,it create a new field like emails[0] then address. it is interesting that in one other .js file it works correctly!