How can I extract only the node information that I select in firebase? EXAMPLE:
-
-L-qKQ-UICkQ1K-QAJDx
-
name: 'Jesus'
-
-L-qKRq1_yZmTdjvRqfN
-
name: 'Moises'
I just want to extract the node '-L-qKRq1_yZmTdjvRqfN'
where the name 'Moises' is
Is there any way without having to select all?
firebase.database().ref('usuarios').on('value', function(data) {
var element = data.val();
$.each(element, function(nodo, value) {
if(nodo == '-L-qKRq1_yZmTdjvRqfN') console.log(value.name);
});
});