We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d4bbac0 commit f2f9adcCopy full SHA for f2f9adc
1 file changed
examples/app-crm/objectstack.config.ts
@@ -22,6 +22,9 @@ export default defineStack({
22
},
23
24
// All objects in the app
25
+ //
26
+ // Method 1: Code-First (Explicit Import)
27
+ // Directly import TypeScript object definitions. This provides strict type checking.
28
objects: [
29
Account,
30
Contact,
@@ -30,6 +33,14 @@ export default defineStack({
33
Case,
31
34
Task
32
35
],
36
+
37
+ // Method 2: Schema-First (Glob Patterns)
38
+ // Alternatively, you can use glob patterns to load objects from the file system.
39
+ // This is common for metadata-driven development or when using YAML/JSON files.
40
+ // objects: [
41
+ // './src/domains/**/*.object.ts',
42
+ // './src/domains/**/*.object.yml'
43
+ // ],
44
45
// Custom APIs
46
apis: [
0 commit comments