I have the following Entities
:
Group
name Text
GroupUser
user UserId
group GroupId
and I would like to do a query like this:
select g.* /* Everything from g */
, count(gu.id) groupUsersCount
from Group g
left outer join GroupUser gu on gu.groupId = g.id
group by g.id
Can it be done with Esqueleto
?