Nesting stars in Firebase Database
问题 I find Firebase Database sample very helpful, but I noticed something which worries me a little bit. I mean in this example user can give star to the post, something like "Like it" on Facebook. In provided sample they nested stars into post, so we have sample object like this: "post_id" : { "author": "username", "body": "Some content", "starCount": 1 "stars" : { "user_id_who_gave_star" : "true" } "title": "Some title", "uid": "author_id" } Such solution has many advantages, like e.g. we can