Skip to content

Commit 6e4582c

Browse files
committed
Fixed: note in docs how to reference drizzle schema #174
1 parent 9f0395e commit 6e4582c

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

ving/docs/change-log.md

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ outline: deep
1010
* Fixed: Documentation: useVingRecord findOne docs are wrong #201
1111
* refactored to use Intl instead of date-fns #204
1212
* NOTE: If you are using the date formating strings in dateTime.mjs you will need to update them to use Intl instead of date-fns.
13+
* Fixed: note in docs how to reference drizzle schema #174
1314

1415
## December 2024
1516

ving/docs/subsystems/ving-record.md

+7
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,13 @@ import {useKind} from '#ving/record/VingKind.mjs';
4343
const users = await useKind('User');
4444
```
4545

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+
const schema = Users.table.username;
51+
```
52+
4653
### Creating Records
4754
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.
4855

0 commit comments

Comments
 (0)