I'm trying to get info in firebase database, I want the users of one selected store,
"store":{
   "id1":{
     address:"location"
     "users":{
        "id": true
     }
   }
}
"users" : {
  "id":{
    "name": "tom",
    "lastname": "levine",
    "store": {
      "id1": true
    }
  }
}
I have the store id, and I want all the users that match whit that store.
const db = firebase.database();
db.ref('users').child('store').equalsTo('id1').once('value', (snapshot) =>{})
but it is not working, how can I do this? I don't have the userId, just the store that they belong
 
    