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

Instruction

Create Movie Records

So far, we've defined data relationships in our models, set one-to-many relationships using associations, created related data using our models, and added seed data. Now we're ready to create the Movie records!

  1. Call the Movie model create() method, passing in an object literal with the desired property values:

    // Add Movies to the Database
    console.log('Addin...