Database Management
Create Database Collection
Create a Database Collection for your Organization. Each collection stores your data in the form of Documents which are structures of JSON Objects. You can run complex Queries on all the data that is present in a Collection.
post/api/collections/create
Request body
Example request
{
"collection": "Users",
"collectionSchema": {
"name": "string",
"age": "number",
"weight": "float",
"is_active": "boolean",
"date_of_birth": "date",
"timestamp": "timestamp",
"address": "json",
"hobbies": "array",
"location": "geopoint",
"id": "uuid",
"ip_address": "ip"
},
"collectionSortBy": "name"
}Response
Output from the Database Creation Process
Example response
{
"status": "success",
"processing_time": 888,
"processing_id": "4b139bfe-1f71-4345-b539-fa6c1700f166",
"processing_count": 6554,
"database": {
"collection": "Users",
"elapsed_time": 800
}
}