I'm testing on firebase
and I'm having trouble recovering bank data with JS.
The table structure is as follows:
Scores
- key
- name
- points
- key
- name
- points
What I want is to return the scores of a given name for example, but I just want to retrieve all the data and manipulate them, I do not want to connect those listeners child_added
, child_removed
. Is it possible to do this?
I tried this:
firebase.database().ref('scores').orderByChild('name').equalTo('Fulano');
And I get a firebase object, but I do not know how to manipulate it or even if it is correct.