MikeAmirOriginal post
Rank 2: Process
Hello 👋
If I'm not going to use the built-in relations feature because it's still in experimental mode, then what are the best practices for linking documents together?
Should I store the IDs in the document fields?
And if I have a one-to-many relationship, then should I store the multiple IDs in an array?
And create a separate dedicated table for the many-to-many relationships?
And simulate the document deletion operations using cloud functions?
Summary
To simulate relations without using the experimental feature, developers can store IDs in document fields, use arrays for one-to-many relationships, create a separate table for many-to-many relationships, and simulate document deletion operations using cloud functions.