Mongoose model and API sub-generator¶
Generate a mongoose document model with API endpoints.
Execute¶
The sub-generator is invoked with:
yo makrina:model
The sub-generator is also invoked by the main generator.
Description¶
It creates:
- A mongoose document model
- An express route with API endpoints and basic CRUD
Prompts¶
The generator asks the object details, which are similar to the angular core service prompts that have been used in the respective generator.