Answer the question
In order to leave comments, you need to log in
firebase structure?
How to properly organize communication between entities in firebase?
Example - there are users and posts, each user can be the author of a post and each post can have an author-user, respectively.
How to connect users with posts so that, by analogy with sql, you can store the author's id in the post and, when requesting posts, get the id of its author in one query?
Or store an array of id of his posts in the user and, when the user requests, get all his posts by id?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question