C
C
chelnokov_a2021-12-28 21:42:18
firebase
chelnokov_a, 2021-12-28 21:42:18

How to get the section that contains the given value?

Good afternoon.

I have this structure in the chats/ section.
61cb59d15afde148045720.png

I know in advance the id of one of the users (of which there are always 2). I want to get all all chats by one of the users whose known id is specified.

I am aware of the equalTo and orderByChild methods. But I ran into a problem while trying to read the value of a child field. Tell me how to make a request

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