Hi all, I got an expression like
transaction {
Restaurants.slice(Restaurants.followers.min(),Restaurants.id)
.selectAll()
.groupBy(Restaurants.id)
.first()
}
and I have a simple mapper
private fun toRestaurantUserName(row: ResultRow) = RestaurantUserNameDto(
id = row[Restaurants.id],
numberOfFollowers = row[Restaurants.followers.min()]!!
)
my question is when I want to fetch Restaurants.followers.min(), should I use
row[Restaurants.followers.min()]!!
these one with double !!, or is it better way to write the code?Thank you