Database Management
Fetch the Unique Values of a Field/Key in a Collection (Sortable)
Fetch the Unique Values of a Field/Key in a Collection. You can also sort the response in a specific order of asc or desc on the basis of the Field/Key that you pass in.
post/api/collections/data/fetch/unique
Request body
Example request
{
"collection": "Users",
"key": "name",
"orderBy": "age",
"orderType": "desc"
}Response
Output from the Database Collection Fetch Process
Example response
{
"status": "success",
"processing_time": 888,
"processing_id": "4b139bfe-1f71-4345-b539-fa6c1700f166",
"processing_count": 6554,
"data": {
"databaseId": "1234567890",
"collection": "Users",
"elapsed_time": 800,
"data": [
{
"sampleDbContent": "This is a sample content",
"sampleDbContent2": "This is a sample content 2"
}
]
}
}