In this chapter you’ve learned how to define a model to store and retrieve nested comments. The model in this chapter stores a full comment thread as a single document rather than storing a document for each comment; this makes it simpler to read the full thread.
In this chapter you’ve also implemented a basic model for a webpage and for photos, and you’ve integrated multiple models into the Express route handlers, AngularJS templates, and AngularJS application.