Subsets are not managed in a separate tab. They are managed in the Subsets sheet within the
Entity tab. After selecting an Entity, you work in the Subsets sheet alongside Properties,
Indexes, Relations, and Enums.
What is a Subset?
A Subset is a predefined field group that selectively retrieves only some fields of an Entity.Why Use Subsets
Example
Subset Management Screen
Accessing from Entity Tab
To manage Subsets in Sonamu UI:- Click the Entity tab
- Select the desired Entity from the left sidebar
- Click Subsets among the sheet tabs at the top

Managing Subsets in the Subsets sheet of Entity tab

Screen Layout
The Subsets sheet is organized as follows:- Left Sidebar: Entity list (showing currently selected Entity)
- Top Sheet Tabs: Properties, Indexes, Relations, Enums, Subsets
- Subset List: All Subsets of the current Entity (A, B, C, etc.)
- Field Selection Area: Checkboxes for fields to include in the selected Subset
Creating a Subset
1. Navigate to Entity Tab
Click the Entity tab in Sonamu UI.2. Select Entity
Select the Entity to add a Subset to from the left sidebar.3. Open Subsets Sheet
Click Subsets among the sheet tabs at the top.4. Add Subset
Click the [Add Subset] button to create a new Subset.Subset IDs typically use single alphabet letters (A, B, Cβ¦).
5. Select Fields
Select the fields to include in the created Subset: Basic fields:Subset Types
Subset A (Basic List)
Purpose: Used for list queries Includes: Required info + summary infoSubset B (Detail View)
Purpose: Single record detail query Includes: All general info (excluding sensitive info)Subset C (With Relations)
Purpose: Query including related data Includes: Basic info + related EntitiesRelation Field Settings
belongsTo Relation
Example: Post β User (author)hasMany Relation
Example: User β Post[] (authored posts list)Editing Subsets
Add/Remove Fields
- Navigate to the Entityβs Subsets sheet in the Entity tab
- Select the Subset to edit
- Click field checkboxes to change inclusion/exclusion
- Click [Save] button
Delete Subset
- Navigate to the Entityβs Subsets sheet in the Entity tab
- Select the Subset to delete
- Click [Delete] button
- Click [Confirm] in the confirmation modal
Practical Examples
User Management System
Blog System
Using in Models
Once Subsets are defined, they can be automatically used in Model APIs.Using in findMany
Using in findById
Performance Optimization
Select Only Needed Fields
Minimize Relation Loading
Next Steps
Model
Using Subsets in Models
API Development
Using Subsets in APIs