Mongoose provides a schema for our application code to work against and a direct relationship between our MongoDB documents and the Mongoose models. As a result, we can only create blog posts that comply with the above-described schema.