> 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.
- depends on
-
SERVER-26599 Master-slave initial sync should use the exact _id index spec from master
- Closed
- related to
-
PHPLIB-226 Implement ArrayAccess for CollectionInfo and DatabaseInfo
- Closed