Hi,
I’m pretty new to Meteor development and I ran into a following problem.
I have my code wrapped within Meteor.methods
. The owner: Meteor.userId()
is currently displaying the id
of the user who created the element. Is there a way to display user’s email instead of the unreadable ID generated by the server? And of course, what would be the best practice for doing it?
Here is my code:
Resolutions.insert({
title: title,
event_date: event_date,
createdAt: new Date (), // grab the time object from the server
owner: Meteor.userId()
});
Thanks a lot!
Blaz