-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Since Updating to mongoose 5.0.2 #7
Comments
Use of plugin in user schema: UserSchema.plugin(autoIncrement, { model: 'User', field: 'pid' }); |
The
Is stored. |
Works with |
@alexpchin was made better error catch on duplicate ids for Mongoose 5.0. It may solve this problem, please check the latest version from npm. Also you may open PR with new tests cases, which will demonstrate broken behavior https://github.com/nodkz/mongoose-plugin-autoinc/blob/master/src/__tests__/parallel-test.js Thanks. |
still get some errors on Mongoose 5+. Will try to debug that today. |
Okay, synopsis is in 5+ the Mongoos/Mongo error cames as |
Since updating, my test with async parallel:
Throws an error:
@sp3c1 And I are looking into it at the moment... It looks like something to do with compound indexes? You said you tested with mongoose 5? However, the dependencies are not 5 - (I don't think). What version did you test with?
Any ideas?
The text was updated successfully, but these errors were encountered: