{"library":"mongodb-autoincrement","type":"library","category":null,"description":"Provides auto-incrementing integer IDs for MongoDB documents, compatible with both the native MongoDB driver and Mongoose. Version 1.0.1 (last updated 2015) is a stable, minimal plugin that relies on a separate 'counters' collection to track sequence values. It supports custom field names, steps, and global Mongoose schema plugin. Unlike MongoDB's built-in ObjectId, this plugin uses sequential integers; it does not support atomic increment guarantees across sharded clusters and cannot set initial values programmatically.","language":"javascript","status":"maintenance","version":"1.0.1","tags":["javascript","mongodb","mongoose","plugin","auto-increment","auto","increment","automatic","autoincrement"],"last_verified":"Fri Jun 05","install":[{"cmd":"npm install mongodb-autoincrement","imports":["const autoIncrement = require('mongodb-autoincrement');","autoIncrement.getNextSequence(db, collectionName, callback)","autoIncrement.mongoosePlugin"]},{"cmd":"yarn add mongodb-autoincrement","imports":[]},{"cmd":"pnpm add mongodb-autoincrement","imports":[]}],"homepage":"https://github.com/TheRoSS/mongodb-autoincrement","github":"git://github.com/TheRoSS/mongodb-autoincrement","docs":null,"changelog":null,"pypi":null,"npm":"mongodb-autoincrement","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}