Mongoose models
Obviously we want our API endpoints to return useful data. So we'll need some way of storing and retrieving data.
Let's use MongoDB for this purpose, as it allows us to easily create and persist our items, as well as user information for later when we authenticate the API.
Mongoose
In this project, we'll be using Mongoose for our interactions with the Mongo database. Mongoose is as an "ORM" library, which stands for object-relational mapping.
Click to load comments...