mongoose-increment
mongoose-increment copied to clipboard
Mongoose plugin to generate incremented field
Can have issue if `delimiterVersion` is a number and present in the increment field
#### Bug, feature request, or proposal: proposal #### What is the expected behavior? If the model is not new but auto-incremented field is undefined, create a new field that represents...
#### Bug, feature request, or proposal: bug #### What is the expected behavior? Unique sequence number in all cases #### What is the current behavior? If two or more models...
```javascript TypeError: this[options.field].substring is not a function at model.parseSequence (increment.js:124:40) at apply (node_modules/lodash/lodash.js:409:27) at model.wrapper [as parseSequence] (node_modules/lodash/lodash.js:4837:16) at doc.save.then (test/increment.spec.js:553:24) at newTickHandler (node_modules/mongoose/node_modules/mpromise/lib/promise.js:234:18) at _combinedTickCallback (internal/process/next_tick.js:73:7) at process._tickCallback (internal/process/next_tick.js:104:9)...