Join us to discuss the challenges, solutions and best practices for in-house JavaScript code sharing. Tuesday, 12/17 at 10am PT/1pm ET.Sign up here »

mongoose-auto-api.models

1.0.2 • 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

8

Version

1.0.2

License

MIT

Unpacked Size

8.87 kB

Total Files

6

Last publish

Collaborators

  • avatar