GustavoG
Convex Community16mo ago
3 replies
Gustavo

Migrating to Convex: how to deal with IDs?

If i'm migrating from another database (e.g. Firestore) to Convex, are there any recommendations on how to deal with the IDs as they're not valid in Convex?

Should I just let Convex generate its own IDs and keep the old Firestore ID in a separate field in the document?

But what about the relationships? I mean, I guess I won't be able to use the Convex IDs to reference other documents when initially importing the data.

Or is there a completely different strategy that I should consider?
Was this page helpful?