I apologize for such a simple question, but documentation meteor.js very briefly, many of the points are not described in great detail. How to access the elements of the collection in the meteor? Suppose there is a built collection of User, which stores user data. The user ID can be obtained by applying the following code on the client side:
return Meteor.userId()
However, but if you want to display other data (username, email), it is already a problem. After about such code issued inscription [object Object]:
return Meteor.users.find({emails:"geckt@rambler.ru"})
What is the correct syntax to access elements of the collection that I have missed?
Aucun commentaire:
Enregistrer un commentaire