Get unlimited public & private packages + package-based permissions with npm Pro.Get started »

mongoose-auto-api.models

1.0.4 • Public • Published

Mongoose Auto API - Models Module

Build Status npm version

Automatic Mongoose REST API - Module to generate models ☕

Install

  • npm i -S mongoose-auto-api.models

Model Setup

  • 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

Usage

models = require('mongoose-auto-api.models')

Install

npm i mongoose-auto-api.models

DownloadsWeekly Downloads

16

Version

1.0.4

License

MIT

Unpacked Size

9.08 kB

Total Files

6

Last publish

Collaborators

  • avatar