Skip to content

DSInnovators/dsi-mongoose-auto-increment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

DSi-Mongoose-Auto-Increment

NPM version

Mongoose plugin for auto-increment number ID.

Install

npm install --save dsi-mongoose-auto-increment

Usage

var mongoose = require('mongoose');
var dincrement = require('dsi-mongoose-auto-increment');

//for global:
mongoose.plugin(dincrement);

//for individual model:
CustomSchema.plugin(dincrement);

//for custom property in your model:
CustomSchema.plugin(dincrement, {column: '_ColumnName_'});

License

ISC © [Mushraful Hoque Anik]

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published