📅  最后修改于: 2022-03-11 14:53:57.290000             🧑  作者: Mango
$query = $articles->find();
$query->select([
'count' => $query->func()->count('view_count'),
'published_date' => 'DATE(created)'
])
->group('published_date')
->having(['count >' => 3]);