Open gerhardcit opened 2 months ago
Early days for me with TS and Convex - but using a type assertion works. { id: taskId as Id<'tasks'> }
I expect at some point the taskId string
has to be cast to that type.
I've built this simple todo-application using Convex and Sveltekit, this project aims to implement CRUD functionality in a modularized way. Here's the link to the GitHub repo of the project: https://github.com/programmingenjoyer219/convex-sveltekit-todo-app
Your suggestions and modifications to the project will be appreciated.
Could you provide examples on how to use delete, patch etc as well. New to Convex and so far the svelte examples are VERY basic. Its fine to query a db, but what about the CRUD operations? It would really help if you can expand on how that is used.
Convex docs are mostly based around React examples. Which is not helpful.
eg: I have
/src/convex/tasks.ts
then in
src/routes/page.svelte
But then this: How do I send an id?