我在后端使用Scala 2.x和MongoDB,我必须承认Salat对mongo操作有很好的支持。但到目前为止,我还没有找到任何好的例子来说明如何使用SALAT (如$unwind、$match、$group或聚合管道)调用mongo聚合函数。}{ }, $limit :1]) support for AGGREGATE
我的做法如下:trait Version[A <: DBEntity] extends ModelCompanion[A, ObjectId] {
* this method overrides the default salat dao save method in= null) {
// let salat deserialze the case c