[DOCS-9600] Comment on: "manual/tutorial/unique-constraints-on-arbitrary-fields.txt" Created: 06/Dec/16  Updated: 30/Oct/23

Status: Closed
Project: Documentation
Component/s: manual, Server
Affects Version/s: None
Fix Version/s: Server_Docs_20231030

Type: Bug Priority: Major - P3
Reporter: Docs Collector User (Inactive) Assignee: Kay Kim (Inactive)
Resolution: Won't Do Votes: 0
Labels: collector-298ba4e7
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Location: https://docs.mongodb.com/manual/tutorial/unique-constraints-on-arbitrary-fields/#shard-key-arbitrary-uniqueness
User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.116 Safari/537.36
Referrer: https://docs.mongodb.com/manual/core/sharded-cluster-requirements/
Screen Resolution: 1920 x 1080


Participants:
Days since reply: 1 year, 14 weeks, 2 days ago
Epic Link: DOCSP-1769

 Description   

I think you have an error in the example you give at the https://docs.mongodb.com/manual/tutorial/unique-constraints-on-arbitrary-fields page.

Instead of:

proxy.insertOne({
   "_id" : primary_id
   "email" : "example@example.net"
})

there should be:

proxy.insertOne({
   "parent_id" : primary_id
   "email" : "example@example.net"
})



 Comments   
Comment by Education Bot [ 31/Oct/22 ]

Hello! This ticket has been closed due to inactivity. If you believe this ticket is still important, please reopen it and leave a comment to explain why. Thank you!

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