Skip to content

Glossary: MongoDB

createIndex

Also written: createIndex()

A method that builds an index on the fields you give, using 1 for ascending and -1 for descending, and replies with its name such as `sku_1`.

Where the book teaches it

Related terms

IndexgetIndexesdropIndex