error
Example
- Return all index information under the collection employee
db.sample.employee.listIndexes()
{
"IndexDef": {
"name": "$id",
"_id": {
"$oid": "5e9e91bccf4f1e7370e4074d"
},
"key": {
"_id": 1
},
"v": 0,
"unique": true,
"dropDups": false,
"enforced": true,
"NotNull": false
},
"IndexFlag": "Normal",
"Type": "Positive"
}
Click on Jushan Database Documentation Center for more information