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

Instruction

Create Related Movie and Person Data

Now it's time to start creating related data using our Movie and Person models.

To set a director on a Movie record, we first need to create the Person records. This is necessary because each Person model instance id value must be available before attempting to set the Movie model directorPersonId foreign key property.

At the top of the app.js file, we declare the Person and `...