Skip to content

Instantly share code, notes, and snippets.

Created Aug 3, 2017
What would you like to do?
the description for this gist
def categoriesByProducts(productsIds: Seq[ProductId]): Future[Seq[(Seq[ProductId], Category)]] =
.filter(_.productId inSet productsIds)
.join(Categories).on(_.categoryId ===
.map { result =>
result.groupBy( {
case (_, categories) categories.head._2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment