Yes thank you I managed to do it.
Works like a charm.
Another question for my example.
Can the foreignKey be the id of the target Firestore doc? What is the exact field name?
And: is it safe to use the same document id in multiple collections?
For example I have a users collection and I want to add "liked" users to a doc as a subcollection. I would use the same id of the user, but is it safe at a Firestore model level?
Thank you
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Yes thank you I managed to do it.
Works like a charm.
Another question for my example.
Can the foreignKey be the id of the target Firestore doc? What is the exact field name?
And: is it safe to use the same document id in multiple collections?
For example I have a users collection and I want to add "liked" users to a doc as a subcollection. I would use the same id of the user, but is it safe at a Firestore model level?
Thank you