Are there any good examples how to calculate median in MongoDB using aggregate framework?I have grouped my data already:db.collection.aggregate( {$sort:{n:1}}, { $group:{ _id:"$_id",n:{ $push:"$n" }, len:{$sum:1} }} );{_id: 2, n: [1,1,2,3,3,3,4,5,6,7], len:9},{_id: 3, n: [1,5,5,6,6,7,9], len: 7}Can I use $splice function in aggregation framework?