Summary
In this chapter, we've seen how Mongoose helps us to create and use more complex database structures. We can use nested schemas and subdocuments and also pull data from other collections. Our code examples can be used as the basis for updating our MongoosePM application with better task information and returning user details with projects. Download the code for this chapter from Packt Publishing's website to see it in greater detail.
Coming up next in the final chapter, we're going to look at how to re-use code using Mongoose plugins.