npm

Need private packages and team management tools?Check out npm Orgs. »

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

41

version

1.0.2

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability