Add Index
POST https://example.com/db/{database}/addIndex/{collection} { "index": null }
Description
Adds an index to a collection.
Source Files
File Path | Line Number | Action |
---|---|---|
mongo-express/lib/routes/collection.js | 355 | View |
mongo-express/lib/router.js | 344 | View |
Parameters
Name | Required | Type |
---|---|---|
database | true | string |
collection | true | string |