How to access pocketbase custom hooks values in sveltekit?

101 Views Asked by At

After inserting data into database, I want to get ID of inserted data and use it in frontend (sveltekit).

To get ID, I did this,

onRecordAfterCreateRequest((e) => {
    const post_id = e.record.getId;
}, "posts")

I don't know how to use this post_id in sveltekit.

0

There are 0 best solutions below