Rank 1: Thread
I am creating a Flutter application containing the following data: Contact (of a person) containing mobile, email, permanent address, local address, communication address, etc.
I have created two collections namely, contact and address. The contact has the following fields: mobile, email, permAddr (permanent address), localAddr (local address), and commAddr (communication address), etc. Each of the address fields are expected to have one-to-one relation to the address collection. However, it is not possible to create three one-to-one relations between contact and address collections. I get the 'failed' error in the console when I create second and third one-to-one relations.
It is possible to create one-to-many relationship. However, it will require 'address' relation field to be an array, which I do not want. I wish to keep these three fields separate as mentioned above.
How to handle this situation?