On the Collection Management screen and Document Management screen, you can manage the collections and documents stored in UniBaaS DB.
The components of the management console are as follows:
| Component | Description |
|---|---|
| Collection List | A list of collections registered in UniBaaS DB. The collection ID, tags, and creation date are displayed. Clicking a row navigates to the document list for that collection. |
| Collection Action Buttons | Right-clicking a row also displays available action buttons.
|
| Collection Search Filter | Filter collections by collection ID or tag name (exact match only). |
| Create Collection | Create a new collection. |
| Document List | Displays the list of documents in the selected collection. Display columns can be customized. Clicking a row opens the document detail dialog. |
| Document Action Buttons | Right-clicking a row also displays action buttons.
|
| Document Search Filter | Filter documents using a JSON-based filter. |
| Create Document | Create a new document within the collection. |
Managing Collections
Displaying and Filtering the Collection List
Collections registered in UniBaaS DB are displayed. Filterable fields—collection ID and tags—support exact match only.
Creating, Updating, and Deleting Collections
Create
Click the [+ Create] button on the collection screen to open the dialog.
Specify optional tags to assign to the collection. A new collection will be created.
Update
Click the [edit] button in the collection list to open the update dialog.
Only tags can be modified in the collection update screen.
Delete
Click the [delete] button in the collection list to display a confirmation dialog and delete the collection. All documents contained in the collection will also be deleted.
Exporting a Collection
Click the [download_2] button in the collection list to open the export dialog.
Click Start Export.
Once the export data is prepared, a “Save As” dialog will appear. Save the file to your desired location.
The export file format is JSONL (JSON Lines).
Importing a Collection
Click the [upload_2] button in the collection list to open the import dialog.
Select a file and click Start Import. Data will be imported into the collection.
Only JSONL format is supported for imports.
Managing Documents
Displaying, Filtering, and Configuring Document Columns
Clicking a collection in the collection screen displays the list of documents registered under that collection.
- If a field value represents a URL, it is automatically displayed as a clickable link.
- If a field value contains base64-encoded image data, the image is automatically decoded and displayed.
- Documents (JSON) are flattened, and only the first-level fields are shown in the list.
Document Details
Click [visibility] button to open the document detail dialog.
Filter
Specify JSON filter conditions using dot notation. For example, to find documents where "column1" equals "foobar":
{"column1":"foobar"}Configuring Display Columns
By default, system columns (_id, creation date, update date) are shown, and the remaining columns are automatically detected by flattening the first document in the list.
Click [Column Settings] to customize the displayed columns.
Creating, Updating, and Deleting Documents
Create
Click the [+ New Document] button to open the dialog.
Enter the document contents in JSON format.
Update
Click [edit] button on the document you want to update.
Modify the document in JSON format.
Delete
Click [delete] button on the document you want to delete. A confirmation dialog will appear.