我如何使用用户查询构建器?我需要创建查询
SELECT p.id, p.name, count(c.id)
FROM parent p
JOIN child c ON c.parent_id=p.id
WHERE <criteria>
GROUP BY p.id
我想要像
这样的东西var query = 'SELECT p.id, p.name, count(c.id) FROM parent p JOIN child c ON c.parent_id=p.id ' +
where(request.where) +
skip(request.skip) +
limit(request.limit) +
' GROUP BY p.id'