We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 53e781e + dbb0996 commit cddad41Copy full SHA for cddad41
README.md
@@ -109,15 +109,18 @@ let schema = `
109
}
110
`;
111
112
-// Write the schema
113
-client.tenancy
114
- .create({
115
- tenantId: "t1",
116
- schema: schema,
117
- })
118
- .then((response) => {
119
- // handle response
120
- });
+// 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
121
+.catch((error) => {
122
+ console.error("Error writing schema:", error);
123
+});
124
```
125
126
### 4. Relationship Management
0 commit comments