Is there a way to delete or update item without using db.delete and db.patch?
I want to delete or update item but lets say I can not use
_id
4 Replies
You would query to get the item with whatever data you have - once you query you have the id, then you can delete.
Same for patch
If you're working with a list, you can async map over the query result to concurrently patch/delete
I'm writing ConvexAdapter for lucia auth v3
Error:
this.db.delete
does not exist
I assume this is because of the "transactional" nature of convex maybe? FYI sessionId is legit
sid is something lucia-auth createsYou can't delete from within a query - only within a mutation transaction
Yes, I see, working now