croquiscom/cormo

aggregation 시 가장 첫번째 레코드의 특정 column을 select할 수 있는 기능

seoyeongB opened this issue · 1 comments

group by 시 그룹핑 된 레코드의 가장 첫번째 레코드의 특정 column 값을 반환 받고 싶습니다.

// e.g
Model.where().group('shop_id', { name: { $first: '$name' } })

$any 라는 연산자로 넣어봤습니다 0.11.13