I have a publication that should return me all users matching an _id
array. here it the query:
Meteor.users.find({ '_id': { $in: myArray}},{ 'profile.name':1, 'profile.description':1, 'profile.picture':1, 'profile.website':1, 'profile.country':1} );
When I run it in Robomongo (the mongo browser), it works. But my publication only returns undefined
. when I console.log(myArray);
in the publication, I get something like this ['FZ78Pr82JPz66Gc3p']
. This is what I paste in my working Robomongo query.
Alternative question: how can I have a better feedback(log) from the Collection.find()
result?