I am trying to do a search with a specific value with userkey in a firebase database, but I am getting below problems.
I want to receive, as if I transferred the user key 11112, then when recording i11113 two records will start, then one record will come.

Despite the fact that I tried with the code below, but getting an error. firebase script: -
<script type='text/javascript' src='https://cdn.firebase.com/js/client/1.0.15/firebase.js'></script>
the code:
var ref = new Firebase('fire-base-url');
ref.orderBy("userkey").equalTo("11112").once("value", function(snapshot) {
console.log(snapshot.key);
});
Console Error:
Uncaught TypeError: ref.orderBy is not a function
source
share