Fwd: Help with query

5 views
Skip to first unread message

Augusto César

unread,
Jun 19, 2018, 3:25:28 PM6/19/18
to fireba...@googlegroups.com
Hi Group!

question.jpg

I've made several attempts, but I could not ... I need to return all users that contain a key in offices. For example. If the key is "-LFJKWsk_C7-tRXoK6JJ",
I have to return user (key) "Cq55jtBQy8XvGZqyi4VyQjjnaGO3" and "Cq55jtBQy8XvGZqyi4VyQjjnaGO4" Thank you for any help!

Kato Richardson

unread,
Jun 19, 2018, 3:34:44 PM6/19/18
to Firebase Google Group
Hi Augusto, you need to invert the index. Read more in Puf's excellent post here: https://stackoverflow.com/questions/40656589/firebase-query-if-child-of-child-contains-a-value

☼, Kato

--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/CAP_CHscvNzm4tjoB-_fEg_%2BmomkqmkpjhRHETo_PVo-XDAr7Mg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


--

Kato Richardson | Developer Programs Eng | kato...@google.com | 775-235-8398

Reply all
Reply to author
Forward
0 new messages