Open kevinresol opened 3 years ago
Same for groupBy:
db.User.join(db.Post).on(User.id == Post.id).groupBy(f -> [f.User.id]);
Not completely related, but I had this api idea:
abstract Field(...) {
public function asc()
return {field: this, order: Asc}
public function desc()
return {field: this, order: Desc}
}
...orderBy(f -> [f.User.id.desc()])
errors with
This is basically just a typing issue caused by the wrong
Owner
inField
. Withcast f.User.id
it runs fine at runtime because it is merely anExpr