I have multiple tables and I need to return them all together with a Slick query.
case class A(id: Int, name: String)
case class B(id: Int, name: String)
case class C(id: Int, name: String)
case class AtoC(aId: Int, dId: Int)
case class D(id: Int, name: String)
Assuming I have Table definitions matching the above case classes, I want to return something like (A, B, C, Seq[D])
but I cannot find a way to write it where it will even compile.
I have tried something like this:
for {
a <- AQuery.innerJoin(B)....
...
AtoC <~ a.innerJoin(AtoCQuery).on(....)
but this won't even compile.