You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now the createUser mutation only provides a profile argument where you can supply additional user info such as name, birthday, gender, etc. to store on the profile field in the user document.
It would be great if createUser were expanded to allow custom fields like this, so we're not forced to stick things under profile, especially when MDG doesn't recommend it.
The text was updated successfully, but these errors were encountered:
Pass the profile data in through the profile field of the mutation
Create a custom hook on the server to re-arrange the data:
Accounts.onCreateUser((options,user)=>{return{
...user,name: options.profile.name,// this pulls the name out of profile and stores it at the top level instead};});
Right now the
createUser
mutation only provides aprofile
argument where you can supply additional user info such as name, birthday, gender, etc. to store on theprofile
field in the user document.However, Meteor doesn't recommend storing ANY of your user data on profile and instead recommends storing it as a first-class field on the user document.
It would be great if
createUser
were expanded to allow custom fields like this, so we're not forced to stick things underprofile
, especially when MDG doesn't recommend it.The text was updated successfully, but these errors were encountered: