You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/guide/data-modeling.md
+8-3Lines changed: 8 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,11 +4,14 @@ Data modeling in ObjectQL is **Metadata-First**. You define your application's s
4
4
5
5
## 1. The Object Definition
6
6
7
-
Each file represents one business entity. By convention, name the file `[object_name].object.yml`.
7
+
**ObjectQL uses filename-based identification.** The object name is automatically inferred from the filename (without the `.object.yml` extension), eliminating redundancy.
8
+
9
+
**File naming:**`<object_name>.object.yml`
8
10
9
11
```yaml
10
-
# objects/product.object.yml
11
-
name: product
12
+
# File: product.object.yml
13
+
# Object name "product" is automatically inferred from filename!
14
+
12
15
label: Product
13
16
description: "Catalog items for sale"
14
17
icon: standard:product
@@ -32,6 +35,8 @@ fields:
32
35
- clothing
33
36
```
34
37
38
+
**Note:** The redundant `name: product` property is no longer needed - it's automatically inferred from the filename!
39
+
35
40
## 2. Fields & Relationships
36
41
37
42
ObjectQL supports rich field types that automate UI rendering and validation.
Copy file name to clipboardExpand all lines: docs/guide/metadata-organization.md
+38-12Lines changed: 38 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -107,19 +107,41 @@ Each module should have a README explaining:
107
107
108
108
## Object Naming Conventions
109
109
110
-
### Prefixing Strategy
110
+
### File-Based Naming
111
+
112
+
**ObjectQL uses filename-based identification.** The object name is automatically inferred from the filename (without the `.object.yml` extension), eliminating redundancy.
111
113
112
-
For large projects with multiple modules, use prefixes to avoid name collisions:
0 commit comments