I want to retreive specific subarray of my document, and I do that:
var userData = Meteor.users.find({_id: this.userId},{groups : {$elemMatch:{id:groupId}}});
console.log(userData);
But the console.log() return me all data of specific user, no only the subarray, also I tried with findOne.
Someone can help me, please?