Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

169
Visualizações
How to Query for getting data of Child from firebase Realtime Database

I want to get the data under machine and the path is like this Users then Mobile Number then Machine and i want to get the child of the machine then match that data from the localstore if both match i want to print the child of mobile number. My data structure is like this.If anyone know please help

Users{
  +911234567890{
    "Name": "XYZ"
    "EmailId": "xyz@gmail.com"
    "Address": "abc"
    Machine{
      7D8721210004
      7D8721210005  //I Want to go here to match this with my localstore data. and                
                    // Print the details undert this(+911234567890) number.
    }
  }
}

and this is how i try.

var db = app.database();
var serial = localStorage.getItem('machineid')
db.ref("/Users/").child("/").child("Machines").child(serial).on("value", (snapshot)=>{
  console.log(snapshot.val())
})
about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda