mongodb-autoincrement
mongodb-autoincrement copied to clipboard
There is DeprecationWarning :collection.findAndModify is deprecated. Use findOneAndUpdate, findOneAndReplace or findOneAndDelete instead
Below line have bug: ``` if (err.code == 11000) { process.nextTick(getNextId.bind(null, db, collectionName, fieldName, callback)); } else { callback(err); } ``` The `11000` error also generated when duplicate _id inserted,...
I'm sure this is not a bug, I just don't understand something. You wrote > You cannot set initial values for auto increment fields by the module. If you need...
Hi, I have used your library for some time but when i upgrade it from 1.0.0 to 1.0.1. I found you in line you changed from schemaField[fieldName] = {type: Number,...
As per issue #6, remove required: true
The duplicate may from arguments passed from user: ``` javascript autoIncrement.getNextSequence(db, 'test', 'ID', function(e, ID) {}) ... ... autoIncrement.getNextSequence(db, 'test', 'ID2', function(e, ID) {}) ``` Before this PR, `ID2` will...