How should I structure and denormalize private invites in firebase? -
so use case invite has following properties
- creatorid
- invitedlist (collection of userids)
- private/public
how should structure in firebase? how should denormalize invited userids?
typical query "get invites i've either created or been invited to."
i'd imagine want create root node of privateinvites , set index on creatorid? if want list of invites i've been invited to, what's efficient way of setting in firebase? need set denormalized node , duplicate data adding invite each invitedid individually?
Comments
Post a Comment