[#166] fixed api preview examples

This commit is contained in:
Gani Georgiev
2022-07-19 19:41:03 +03:00
parent 66b317f01c
commit 8a08a4764d
13 changed files with 56 additions and 82 deletions

View File

@@ -52,12 +52,11 @@
const client = new PocketBase("${ApiClient.baseUrl}");
client.Records.getOne("${collection?.name}", "RECORD_ID")
.then(function (record) {
// success...
}).catch(function (error) {
// error...
});
...
const record = await client.Records.getOne("${collection?.name}", "RECORD_ID", {
expand: "some_relation"
});
`,
},
];