Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including mongoose-auto-api.models with all npm packages installed. Try it out:

var mongooseAutoApiModels = require("mongoose-auto-api.models")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

mongoose-auto-api.models v1.0.2

Automatic Mongoose REST API - Module to generate models

Mongoose Auto API - Models Module

Build Status npm version

Automatic Mongoose REST API - Module to generate models ☕


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

Model Setup

  • Model Setup -
  • 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')
RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free