Database

[{"key":1}]

Query

db.collection.aggregate([{$project:{z:{$let:{vars:{x:10,y:15},in:{$sum:["$$x","$$y"]}}}}}])

Result