I mean, this use case is pretty famous isn't it? ...
# language-proposals
g
I mean, this use case is pretty famous isn't it? but ok:
Copy code
data class Model(val fName: String, val lName: String);

val dbConnection: SQLOrMongoTable<Model> 

val result: Iterable<Model> = dbConnection.where { it.fName == "bob" }