Hello, I think my code is correct, I’ve been stuck on this for a while.
The error on the console says TypeError: Cannot read properties of undefined (reading ‘push’)
Add "hamburger" to the list of the person’s favoriteFoods (you can use Array.push())
Which in your code is not correct either. The Person variable is an instance of a mongoose Model, which doesn’t have access to the favoriteFoods properties, only an instance of a Document would have access to that property (and others). This means that you should be using the data returned by the database (a Document) instead of the Model.