I am using Slick for first time, as an FRM tool with Scala and MySQL.
However while writing query with multiple joins, I realised that I can't access some intermediate objects further to filter based on it.
i.e. rep1 here, which is of type Rep[Option[Manufacturer]]]
How can I unwrap this object to Manufacturer so that I can access columns of it ?
val query = product
.joinLeft(manufacturer).on { case (prod, man) => prod.manufacturerid == man.manufacturerid }
.joinLeft(category).on { case ((prod, rep1), cat) => prod.categoryid == cat.categoryid }
// .filter() after this using rep1