I am upgrading from MMAPV1 to Wiredtiger on mongo 3.2.9. I am using the mongodb/mongo-php-driver.git drivers and cannot upgrade at this time. I need a way to get a list of indexes like I could with $collection->getIndexInfo() in MMAPV1. How can this be done?
Thank you, Thank you! I did it without the MongoCommandCursor::createFromDocument(). I just did this.$res=$db->command(array("listIndexes" => $collection));$tmp=$res['cursor']['firstBatch'];foreach($tmp AS $i) $indexes[]=$i['name'];Is there any problem with that?