In mongodb, we can use db.collection.getIndexes() to get all indexes, output is something like:
[
{
"v" : 2,
"key" : {
"_id" : 1
},
"name" : "_id_",
"ns" : "counters"
}
]
Most properties are pretty self-explanatory except for "v", can't seem to find any documentation about this. Does any one know what "v" means here? Thank in advance.