Mongo Playground

Configuration

[{"_id":"12345","Name":"Joe Bloggs","Class_Grade":"b","Homework_Grade":"c"}]

Query

db.collection.update({},[{$set:{Grades:{"Class_Grade":"$Class_Grade","Homework_Grade":"$Homework_Grade"}}}])

Result