ibrahimyaacob
ibrahimyaacob9mo ago

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 work
2 Replies
sshader
sshader9mo ago
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.
ibrahimyaacob
ibrahimyaacobOP9mo ago
okay, thanks for letting me know

Did you find this page helpful?