there way return nested property of field using collection.find()
? have stored information inside users
collection, inside profile
field added property: imagepath
.
so want publish of users collection showing username
, property imagepath
inside profile
(profile have additional information, not sensitive bulky).
meteor.publish('usersinfo', function () { return meteor.users.find({},{fields:{username:1, profile.imagepath:1}}); });
issue: profile.image
not recognized field in query.
wrap profile.imagepath
in quotes. i.e: "profile.imagepath"