Skip to content

Commit ad9ad51

Browse files
Update docs/reference/resources/index.md
Co-authored-by: Ethan Arrowood <[email protected]>
1 parent 8a6a8e0 commit ad9ad51

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

docs/reference/resources/index.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,8 @@ Once declared, `Product` will be available as `tables.Product` (or `databases.da
106106
```js
107107
const ProductTable = tables.Product; // Same as databases.data.Product
108108

109-
// Within your Resource class:
110-
// Create a new record (ID generated)
111-
const created = await ProductTable.create({ name: 'Example', status: 'active' });
109+
// Create a new record (`id` is automatically generated when using `.create()`)
110+
const created = await ProductTable.create({ name: 'Shirt', price: 9.50 });
112111

113112
// Retrieve by primary key
114113
const record = await ProductTable.get(created.id);

0 commit comments

Comments
 (0)