Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community!
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.Start your free trial
Can't view Actors Table in DB browser
The newly created actors will print to the console, but when i refresh DB browser, only the movies db shows up without any actors. Will post code in comments.
Promise.all() is going to return an array of promises in the order they were entered. You need to handle the returned promises before you can display the data.
I think I know what's up:
Go to the "Browse Data" tab next tot he "Database Structure" tab.
Switch Movies table to Actor table. You should see it now (and no longer the movies). You created another table, remember?
You see them both in the console, since you specifically printed them to both (node runs all console.log's and prints them). In the DB browser, this isn't the case (another interface).