Practice Project - Lesson 3 / Exercise 2
- test command -
npm run test-models
In this exercise, you'll be taking what you learned about Mongoose and MongoDb to create a schema and model for the Item resource.
- create a schema for the item resource
- add the correct fields (look at test)
- add the correct validations (look at test)
- extra add compund index to ensure all tasks in a list have unique names
- ensure all tests pass by running test command