mirror of
https://github.com/pocketbase/pocketbase.git
synced 2026-11-08 13:07:25 +01:00
[#166] fixed api preview examples
This commit is contained in:
1 parent
66b317f01c
commit
8a08a4764d
13 files changed
+56
-82
No files matched your search
@@ -53,14 +53,11 @@
|
||||
|
||||
const client = new PocketBase("${ApiClient.baseUrl}");
|
||||
|
||||
...
|
||||
|
||||
const data = { ... };
|
||||
|
||||
client.Records.create("${collection?.name}", data)
|
||||
.then(function (record) {
|
||||
// success...
|
||||
}).catch(function (error) {
|
||||
// error...
|
||||
});
|
||||
const record = await client.Records.create("${collection?.name}", data);
|
||||
`,
|
||||
},
|
||||
];
|
||||
|
||||
Reference in new issue
Block a user