Details
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.
Attachments
Issue Links
- depends on
-
SERVER-26599 Master-slave initial sync should use the exact _id index spec from master
-
- Closed
-
- is documented by
-
DOCS-9480 Docs for SERVER-26513: listCollections output should include _id index spec as idIndex
-
- Closed
-
- related to
-
PHPLIB-226 Implement ArrayAccess for CollectionInfo and DatabaseInfo
-
- Closed
-