I thought this would work to extract a List[String], but no. (anmKey is Option[String])
run(query[Anm].map(_.anmKey).flatMap(_))
I thought this would work to extract a List[String], but no. (anmKey is Option[String])
run(query[Anm].map(_.anmKey).flatMap(_))
Copyright © 2021 Jogjafile Inc.
To get rid of the options, and the nones, use
flatten
Alternatively, if you want to keep the options but remove the nones, you can use
filter
.