http://www.mikitamanko.com/blog/2013/08/25/mongoose-aggregate-with-group-by-nested-field/
ネストしている所は$projectで逃げるように書かれている…が、自分の所ではうまくいかなんだ。バージョンとかによるのかもしれない。
More than 5 years have passed since last update.
Mongooseでaggregateしている時に$groupはネストしている値を読まない(リンクのみ)
Last updated at Posted at 2014-02-27
Register as a new user and use Qiita more conveniently
- You get articles that match your needs
- You can efficiently read back useful information
- You can use dark theme
0