Skip to content

Indices with details for Collection​

GET
/mongodb/collections/{collectionName}/index/details

All Indices of the given Collection as the database reports them: the keys in the order of the index (direction is 1, -1 or the type of the key, a text index lists its fields), unique, sparse, hidden, partial filter, collation, weights, default language and expiration.

Authorizations​

httpAuth
Type
HTTP (bearer)
or
httpAuth1
Type
HTTP (basic)
or
apiKeyAuth
Type
API Key (header: X-AUTH-APIKEY)

Parameters​

Path Parameters

collectionName*

The name of your MongoDb Collection

Type
string
Required

Responses​

application/json
JSON
[
  
{
  
  
"name": "string",
  
  
"keys": [
  
  
  
{
  
  
  
  
"field": "string",
  
  
  
  
"direction": "string"
  
  
  
}
  
  
],
  
  
"unique": true,
  
  
"sparse": true,
  
  
"hidden": true,
  
  
"partialFilterExpression": {
  
  
  
"additionalProperties": null
  
  
},
  
  
"collation": {
  
  
  
"additionalProperties": null
  
  
},
  
  
"weights": {
  
  
  
"additionalProperties": null
  
  
},
  
  
"defaultLanguage": "string",
  
  
"expireAfterSeconds": 0,
  
  
"version": 0
  
}
]

Playground​

Authorization
Variables
Key
Value

Samples​

Powered by VitePress OpenAPI

Released under the MIT License.