Skip to content

Commit ca47b91

Browse files
committed
feat: add example for saving metadata item in README
1 parent 6722563 commit ca47b91

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

packages/client/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,12 @@ async function main() {
4747
// 3. Metadata Access
4848
const todoSchema = await client.meta.getObject('todo_task');
4949
console.log('Fields:', todoSchema.fields);
50+
51+
// Save Metadata (New!)
52+
await client.meta.saveItem('object', 'my_custom_object', {
53+
label: 'My Object',
54+
fields: { name: { type: 'text' } }
55+
});
5056

5157
// 4. Advanced Query
5258
const tasks = await client.data.find<{ subject: string; priority: number }>('todo_task', {

0 commit comments

Comments
 (0)