bool
create_index (
Mongo.db
 
m
, 
string
 
ns
, 
Bson.document
 
key
, 
int
 
options)
Add an index to a collection.
Example:
create_index(mongo, "ns", key, flags)key is a bson object defining the fields to be indexed, eg. \[\{Int32=("age",1)\}, \{Int32=("name",1)\}\]

Comments

The browser you use is not supported by this application, probably because it lacks some critical features.
For a better experience, please consider using this application with a supported browser.