A
A
Andrey Okhotnikov2020-12-24 22:46:31
firebase
Andrey Okhotnikov, 2020-12-24 22:46:31

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 question

Ask a Question

731 491 924 answers to any question