I need to group by months and their values data from a table in MongoDB
SELECT MONTH (date_done) AS mes, SUM(total) AS valor_total FROM tb_finan_movimentacoes WHERE status LIKE '%done%' AND YEAR(date_done) = YEAR(CURDATE()) GROUP BY MONTH (data_done)