Using the Javascript SDK and this sample firebase database, with an index on "mobile" :
test A mobile : "+1234567" B mobile : "+2345678"
Now I want to query all nodes with mobile = "+1234567"
firebase.database().ref("test").orderByChild("mobile").equalTo("+1234567").once('value', function(snapshot) { console.log(snapshot.val()); }); output : null
I asked this exact same question for REST API (resolved) : Firebase Realtime equalTo not working with String like "+123"
But can not get it working with the javascript SDK.
Thanks !
1.4m articles
1.4m replys
5 comments
57.0k users