Database
[{type:"TYPE_1",amount:10,list:[]},{type:"TYPE_1",amount:14,list:[]},{type:"TYPE_2",amount:17,list:[]}]
Query
db.collection.aggregate([{"$group":{"_id":"$type","amount":{$max:"$amount"},data:{$push:{"lists":"$list"}}}}])