[DOCS-9474] Docs for SERVER-26514: Create command should take idIndex option Created: 02/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: Task Priority: Major - P3
Reporter: Emily Hall Assignee: Kay Kim (Inactive)
Resolution: Won't Do Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Documented
documents SERVER-26514 Create command should take idIndex op... Closed
Participants:
Days since reply: 1 year, 14 weeks, 2 days ago
Epic Link: DOCSP-1769

 Description   

Engineering Ticket Description:

The create command should take the full _id index spec as the idIndex option.

> db.runCommand({create: "c", 
idIndex: {v: 1, key: {_id: 1}, name: “_id_”, ns: “test.c”}})

Required options are "key" and "name". "key" must be _id: 1 and "name" must be "_id_". No options are allowed other than "key", "name", "v", "ns", and "collation".

If the "collation" differs from the collection default collation, we reject the command. If "collation" is not present, the _id index inherits the collection default collation.

If "v" is not present, it is set to 2 if featureCompatibilityVersion=3.4 and 1 if featureCompatibilityVersion=3.2.



 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!

Comment by A. Jesse Jiryu Davis [ 19/Nov/20 ]

I found this while working on SERVER-52538. I'm curious if we plan to document "idIndex"?

Comment by Randolph Tan [ 26/Jan/18 ]

Found this while working on SERVER-32291.

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