All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.avsystem.commons.mongo.Sort.scala Maven / Gradle / Ivy

The newest version!
package com.avsystem.commons
package mongo

import com.mongodb.client.model.{Sorts => S}
import org.bson.conversions.Bson

/**
  * @author MKej
  */
object Sort {
  def ascending(keys: DocKey[_, _]*): Bson = S.ascending(keys.map(_.key).asJava)
  def descending(keys: DocKey[_, _]*): Bson = S.descending(keys.map(_.key).asJava)
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy