Database

[{score:5},{score:8}]

Query

db.collection.aggregate([{$project:{score:{$cond:[{$gt:["$score",6]},"$score","$$REMOVE"]}}}])

Result