-
Type: Task
-
Resolution: Duplicate
-
Priority: Major - P3
-
Affects Version/s: None
-
Labels:None
Engineering Ticket Description:
> db.runCommand({listCollections: 1}) { "cursor" : { "id" : NumberLong(0), "ns" : "test.$cmd.listCollections", "firstBatch" : [ { "name" : "c", "type" : "collection", "options" : { }, "info" : { "readOnly" : false } “idIndex”: { "v" : 1, "key" : { "_id" : 1 }, "name" : "_id_", "ns" : "test.c" } }, … ] } }
The idIndex field will not be included for views or collections without an _id index.
- documents
-
SERVER-26513 listCollections output should include _id index spec as idIndex
- Closed
- duplicates
-
DOCS-10061 Docs for SERVER-15359: Provide "id" of collection
- Closed