how to group in mongoDB and return all fields in result. You can use below aggregation query. $$ROOT to keep the whole document per each name followed by ...
確定! 回上一頁