I\'ve run the following code in mongo shell:
db.unicorns.insert({name: \'Dunx\', loves: [\'grape\', \'watermelon\']});
and now I\'ve so
I would like to also illustrate how to do it using a different syntax
var filter = Builders .Filter.Eq(e => e.Name, "Aurora"); var update = Builders.Update .Push(e => e.Likes, like); await fantasyContext.Unicorns.FindOneAndUpdateAsync(filter, update);