Database
[{name:"Thai Restaurant",location:"London",notOpenOnDays:["Monday","Thursday"],entryFee:"$5",rating:"3",},{name:"Indian.com",location:"Broughton",notOpenOnDays:["Wednesday"],entryFee:"$0",rating:"4",},{name:"23rd Street Pizza",location:"Fallowfield",notOpenOnDays:["Sunday"],entryFee:"$2",rating:"4",},{name:"7 STAR Pizza",location:"Newcastle",notOpenOnDays:["Saturday","Sunday"],entryFee:"$10",rating:"2",},{name:"A Cake A Shake",location:"London",notOpenOnDays:["Monday"],entryFee:"$1",rating:"4",}]
Query
db.collection.aggregate([{"$project":{name:1,affordable:{$eq:["$entryFee",{$literal:"$1"}]}}},{"$project":{_id:0,status:{"$cond":{"if":"$affordable","then":"$name","else":"$$REMOVE"}}}}])