i have database like
"profile" : {
"firstName" : "dh",
"lastName" : "french",
"roles" : [
"applicant"
]
},
i want to find whose roles is applicant
so i try this query
var data = Meteor.users.find({
"profile.roles": { $in: ["applicant"] }
}).fetch();
but i always get 0 length data so,which query is righ
admin, notapplicant