consider
var adaRef = firebase.database().ref(\"users/ada\");
How can I get the full path of ref ? that is \"users/ada\" ?
On new versions of the framework you could use:
snapshot.ref.path.toString()
being snapshot the result of a call on a Database Reference.
snapshot
Database Reference
Maybe this can be helpful.