我有以下内容Entities
:
Group
name Text
GroupUser
user UserId
group GroupId
我想做这样的查询:
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
可以用Esqueleto
吗?