is there a way to customize _id with my own id
I know firebase can do this. i tried .insert() with
_id
but its just doesnt work2 Replies
Nope,
_id
must be the one allocated by Convex. You can use another field (e.g. id
or myAppId
) instead. If you define an index on that field (https://docs.convex.dev/database/indexes/), the performance of fetching a document by your ID is identical to using db.get
.okay, thanks for letting me know