Skip to content
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

Version 7.1.1 Doesn't work mongoose 6.0.9 && mongo version 4.2 #68

Open
OguzBey opened this issue Oct 31, 2021 · 1 comment
Open

Version 7.1.1 Doesn't work mongoose 6.0.9 && mongo version 4.2 #68

OguzBey opened this issue Oct 31, 2021 · 1 comment

Comments

@OguzBey
Copy link

OguzBey commented Oct 31, 2021

error to string

MongoServerError: E11000 duplicate key error collection: test_db.users index: email_1 dup key: { email: "[email protected]" }
at /api/node_modules/mongodb/lib/operations/insert.js:51:33
at /api/node_modules/mongodb/lib/cmap/connection_pool.js:272:25
at handleOperationResult (/api/node_modules/mongodb/lib/sdam/server.js:363:9)
at MessageStream.messageHandler (/api/node_modules/mongodb/lib/cmap/connection.js:479:9)
at MessageStream.emit (events.js:314:20)
at processIncomingData (/api/node_modules/mongodb/lib/cmap/message_stream.js:108:16)
at MessageStream._write (/api/node_modules/mongodb/lib/cmap/message_stream.js:28:9)
at writeOrBuffer (_stream_writable.js:352:12)
at MessageStream.Writable.write (_stream_writable.js:303:10)
at Socket.ondata (_stream_readable.js:714:22) {
index: 0,
code: 11000,
keyPattern: { email: 1 },
keyValue: { email: '[email protected]' }
}

@OguzBey
Copy link
Author

OguzBey commented Oct 31, 2021

link pull req #69

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant