Method: XGen::Mongo::Driver::Collection#index_information

Defined in:
lib/mongo/collection.rb

#index_informationObject

Return an array of hashes, one for each index. Each hash contains:

:name

Index name

:keys

Hash whose keys are the names of the fields that make up the key and values are integers.

:ns

Namespace; same as this collection’s name.



148
149
150
# File 'lib/mongo/collection.rb', line 148

def index_information
  @db.index_information(@name)
end