Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 12 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,15 +109,18 @@ let schema = `
}
`;

// Write the schema
client.tenancy
.create({
tenantId: "t1",
schema: schema,
})
.then((response) => {
// handle response
});
// Write the schema using the correct method
client.schema.write({
tenantId: "t1",
schema: schema,
})
.then((response) => {
console.log("Schema written successfully:", response);
// handle response - typically contains schemaVersion
})
.catch((error) => {
console.error("Error writing schema:", error);
});
```

### 4. Relationship Management
Expand Down