I have a question, I am making a query in the first case the data exists in the node and manages to enter .on and recover the data, in the second case the data does not exist in the node so it does not reach to enter a .on and I do not recover any information
liqui
-KqTiAo1cC0nmASiGr94
idLiqui: "-KqTiAkEtSrXZHoMo4I2"
rut: "10401674-k"
status: "listo"
As seen in the node, I only have 1 data and it is the one that matches the first case, for the second case it does not enter the .on
vm.settlements.child('liqui')
.orderByChild('rut')
.equalTo(employee.rut)
.on('child_added', function(snapshot){
vm.dates = snapshot.val();
});