Collection Fields
GET
/mongodb/collections/{collectionName}/schema/analysis
List the Fields in a given collection. 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
Requiredstring
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
Example
1000Default
1000Minimum
0Format
"int32"depth
How deep nested objects are analysed
Type
integer
Default
3Format
"int32"Responses
application/json
JSON "count": 0, "sample": 0, "percentageOfAnalysed": 0, "fields": [ { "name": "string", "fullName": "string", "fieldTypes": [ { "fieldType": "string", "count": 0, "percentageOfParent": 0 } ], "count": 0, "percentageOfParent": 0, "subFields": [ { } ] } ]
{
}
