No, you need to do something like updateOne() … Aggregate outputs documents, it does not update the database.