I can do a find in mongodb like:
db.user.find({ "show": true}, { firstname: 1, lastname: 1, email:1 })
Now I'd like to be a little more specific to let people hide their email address. So what I'd like is to query if "show":true then get firstname:1, lastname:1 AND (email:1 iff show_email:true)
worst case I can take all the info and filter it out on the back end with a map function but I wondered if there was a nice query-able way??