I’m making a system where a user can tag other users with a string (previously undefined, it can be anything).
-
If I use Parse.relation where the relation is the tag string itself, users who don’t use that tag will have an empty relation table created anyway, seems like a waste.
-
If I use Parse.relation named “friend”, how can I further characterize it with the tag?
-
As well it should allow for multiple tags between any 2 users.
I’ll be pondering more about it, any ideas for the appropriate data model given Parse’s architecture are welcome!
Thanks,
Gon
The solution is to set the .relation on the tag, not the user. That way the tag stays a user-defined string, while its relations point to other User objects.