Find Document
POST {{URL_ENDPOINT}}/action/findOne
Using the /findOne endpoint will let you retrieve a single document from a collection. Use the filter property in the request body to specify the search criteria. If more than one document matches the criteria, only the first match will be returned.
Request Body
{"collection"=>"movies", "database"=>"sample_mflix", "dataSource"=>"Cluster0", "projection"=>{"_id"=>1}}
HEADERS
| Key | Datatype | Required | Description |
|---|---|---|---|
Content-Type | string | ||
Access-Control-Request-Headers | string | ||
api-key | string | ||
Accept | string |