Skip to content
This repository has been archived by the owner on Oct 24, 2021. It is now read-only.

Storing custom data in Meteor.users #196

Closed
ffxsam opened this issue Jan 16, 2016 · 3 comments
Closed

Storing custom data in Meteor.users #196

ffxsam opened this issue Jan 16, 2016 · 3 comments

Comments

@ffxsam
Copy link
Contributor

ffxsam commented Jan 16, 2016

The guide says:

The best way to store your custom data onto the Meteor.users collection is to add a new uniquely-named top-level field on the user document.

I thought it was encouraged to use the profile object, per the official docs?

Meteor.users.update(userId, {$set: {'profile.nickname': 'MegaBob'}});
@ffxsam ffxsam changed the title Modifying Meteor.users Storing custom data in Meteor.users Jan 16, 2016
@stubailo
Copy link
Contributor

No in fact there are multiple sections in the guide that say not to use profile. We should change the docs.

@ffxsam
Copy link
Contributor Author

ffxsam commented Jan 16, 2016

Oh shoot. And here I just misinformed someone. 😞 Thanks for the tip.

@stubailo
Copy link
Contributor

stubailo commented Apr 6, 2016

Moved to meteor/meteor

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants