[DOCS-5286] Comment on: "manual/core/index-unique.txt" Created: 26/Apr/15  Updated: 03/Nov/17  Resolved: 13/Jul/15

Status: Closed
Project: Documentation
Component/s: None
Affects Version/s: None
Fix Version/s: 01112017-cleanup

Type: Bug Priority: Major - P3
Reporter: Nicholas Tang Assignee: Kay Kim (Inactive)
Resolution: Done Votes: 0
Labels: collector-298ba4e7
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Location: http://docs.mongodb.org/manual/core/index-unique/#unique-index-and-missing-field
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.90 Safari/537.36
Referrer: http://stackoverflow.com/questions/24430220/e11000-duplicate-key-error-index-in-mongodb-mongoose
Screen Resolution: 1920 x 1200
repo: docs
source: core/index-unique


Participants:
Days since reply: 8 years, 31 weeks, 2 days ago

 Description   

It'd be handy if the page on Unique Indexes actually referenced the error code that you get when you violate it, esp. the case w/ the null (unique index and missing field).

https://github.com/mongodb/docs/blob/master/source/core/index-unique.txt

Stackoverflow pages are the first few 'hits' for the error, and our docs should be.

i.e.

E11000 duplicate key error index: ... dup key: { : null }



 Comments   
Comment by Githook User [ 13/Jul/15 ]

Author:

{u'username': u'kay-kim', u'name': u'kay', u'email': u'kay.kim@10gen.com'}

Message: DOCS-5286 extend unique example to show unique constraint violation
Branch: master
https://github.com/mongodb/docs/commit/db165dc856a1314e4b6ee627ec0d22177c236c4e

Comment by Githook User [ 13/Jul/15 ]

Author:

{u'username': u'kay-kim', u'name': u'kay', u'email': u'kay.kim@10gen.com'}

Message: DOCS-5286 extend unique example to show unique constraint violation
Branch: maser
https://github.com/mongodb/docs/commit/db165dc856a1314e4b6ee627ec0d22177c236c4e

Generated at Thu Feb 08 07:50:01 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.