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

Popular posts from this blog

php - How to add and update images or image url in Volusion using Volusion API -

javascript - jQuery UI Splitter/Resizable for unlimited amount of columns -

javascript - IE9 error '$'is not defined -