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: ving/docs/subsystems/ving-record.md
+7
Original file line number
Diff line number
Diff line change
@@ -43,6 +43,13 @@ import {useKind} from '#ving/record/VingKind.mjs';
43
43
constusers=awaituseKind('User');
44
44
```
45
45
46
+
### Access to Drizzle Schema
47
+
You can access the drizzle schema for a kind by calling `.table` on the kind. For example, if you wanted to get the schema for the `username` field on the `User` kind you could do this:
48
+
49
+
```js
50
+
constschema=Users.table.username;
51
+
```
52
+
46
53
### Creating Records
47
54
You can create records many different ways. In all three methods you'll pass in a list of `props` which is an object containing the values (or columns) to set on the record.
0 commit comments