learn hapi — Displaying Seasons and Episodes for TV Shows with Mongoose Relationship Population

The Futureflix Starter Kit serves two different types of content: movies and TV shows. Each movie separates from all others, even though it’s a pre- or sequel.

TV shows are different in a way that they consist of seasons and each season has an amount of episodes. Mongoose comes with a query helper called population that lets you connect models from different collections. Fetch the referenced document(s) for MongoDB queries.

Let’s go ahead and connect TV shows with seasons and episodes using Mongoose’s population.

hapi Series Overview


Continue reading

University Enrollment Required

Future Students benefit from value packed videos and tutorials.

Enroll to receive exclusive content or sign in if you’re already a Future Student.

Enroll me for $15/mo

Explore the Library

Find interesting tutorials and solutions for your problems.