Slick 3.0.0: How to query one-to-many / many-to-many relations

前端 未结 2 1061
广开言路
广开言路 2020-12-29 07:00

Basically the same question has been asked about a year ago for slick 2.x (scala slick one-to-many collections). I\'m wondering if there has any progression been made with t

2条回答
  •  情书的邮戳
    2020-12-29 08:00

    To what you want to map to, db.run returns a Future(of something), a Future[Seq[(Library, Seq[Book])]] in your case. When mapping over a future you have access to the Seq and you can transform it to something else to get a new Future.

提交回复
热议问题