You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
.newUser
when the user already exists
fails:
MongoError: E11000 duplicate key error collection: huang_test.users index: email_1 dup key: { : "test@test.com" }
at Function.MongoError.create (node_modules\mongodb-core\lib\error.js:31:11)
at toError (node_modules\mongodb\lib\utils.js:139:22)
at node_modules\mongodb\lib\collection.js:668:23
at handleCallback (node_modules\mongodb\lib\utils.js:120:56)
at node_modules\mongodb\lib\bulk\unordered.js:465:9
at handleCallback (node_modules\mongodb\lib\utils.js:120:56)
at resultHandler (node_modules\mongodb\lib\bulk\unordered.js:413:5)
at node_modules\mongodb-core\lib\connection\pool.js:469:18
at _combinedTickCallback (internal/process/next_tick.js:131:7)
at process._tickCallback (internal/process/next_tick.js:180:9)
The docs are pretty straightforward here, so I assume it's something I'm doing wrong.
The text was updated successfully, but these errors were encountered:
Hi there - feel like a bit of an idiot, been staring at this for nearly an hour.
fails to capture the error:
The docs are pretty straightforward here, so I assume it's something I'm doing wrong.
The text was updated successfully, but these errors were encountered: