Skip to content

Fields of a Collection with types​

GET
/mongodb/collections/{collectionName}/fields/detail

All fields of a collection as a flat list, one entry per path (address.city, tags[] for the elements of an array) with the types of the values and how often every type was found in the analysed documents. 404 for a collection that does not exist (2.0.0).

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

Query Parameters

sampleSize

Number of documents that are analysed, 1000 by default (2.0.0; 1.x read every document); 0 reads every document. With a sample the counts and shares are estimates.

Type
integer
Example1000
Default
1000
Minimum
0
Format
"int32"
depth

How deep nested objects are analysed

Type
integer
Default
3
Format
"int32"

Responses​

application/json
JSON
[
  
{
  
  
"path": "string",
  
  
"types": [
  
  
  
{
  
  
  
  
"type": "string",
  
  
  
  
"count": 0
  
  
  
}
  
  
]
  
}
]

Playground​

Authorization
Variables
Key
Value

Samples​

Powered by VitePress OpenAPI

Released under the MIT License.