Database

[{"student":{"name":"arun","dept":"bio","subject":"bot"},"is_rep":true},{"student":{"name":"div","dept":"csc","subject":"program"},"is_rep":false}]

Query

db.collection.aggregate([{$match:{is_rep:true,"student.name":"arun"}}])

Result