robbiblubber.org

help | login | search:  
>>

read  source  history 


getIndexes()


MongoDB Driver Function Reference


Returns all indexes on the collection.



<collection>.getIndexes()



Arguments


<collection> The target collection.



Return Value


Returns a result set (cursor).



Example


db.employees.getIndexes();


Gets information about all indexes on the employees collection.








home | MongoDB Driver Function Reference | MongoDB Driver