How can I get value of firebase?

firabase:
image

and

image

For 21k's driver

I want listing Tag names where 21K values=1

Can someone help me ?

Do you have control over how the data is stored?

If so, you could store it alternatively using 21K as the tag, and driver names under it, if all your values here are 0 or 1.

unfortunately ,
this table is the other side of my app(bus driver side), same problem happens if I change it (station side)

On Firebase you could create and maintain another tag: 21K, which holds a list of users that have 21K:1, the you just need to call back the tag 21K.

Alternatively, you can create an index for 21K in your firebase rules, and then query the firebase database for that index.
https://firebase.google.com/docs/database/security/indexing-data

1 Like