Lets say that I have a node for users in my database, to which the following rules apply:
{
"users" : {
"$user" : {
".indexOn" : "username"
}
}
}
I know that you can build a query to get a user named Foo
like this: firebase.database().ref('users').orderByChild('username').equalTo('Foo').once(...)
But like this I still have to load the whole tree node. Is it possible to get the value I specified in .indexOn
only?