Automatic Mongoose REST API - Module to generate models ☕
npm i -S mongoose-auto-api.models
- Model Setup - mongoose-auto-api.info
- Returns object
- modelName (String)
- collectionName (String)
- primaryKey (String)
- allFields (Array)
- listFields (Array)
- encryptFields (Array)
- encodeFields (Array)
- schema (Object)
- incField (String)
- incrementing UID field
- uidCollection (String)
- UID increment collection
- model (Object)
- Mongoose model
models = require('mongoose-auto-api.models')