Bummer! This is just a preview. You need to be signed in with an account to view the entire instruction.

Instruction

Take Full Advantage of Your Model Associations

Earlier, you learned that defining a data relationship from both models' point of view gives you flexibility in retrieving data from the database. Let's see that in action by updating our Person findAll() method call to include any related Movie model data.

  1. In the app.js file, update the Person findAll() method call by passing in an options object literal with an include property ...