I have a Firebase that looks like this:
{
"jobs" : {
"-Jnbc60FQGiKUubz0u6e" : {
"Description" : "The sink has a leaky faucet!",
"uid" : "simplelogin:4"
},
"-Jnbc60FQGiKUubz0u6e" : {
"Description" : "The microwave is broken",
"uid" : "simplelogin:6"
},
"-Jnbc60FQGiKUubz0u6e" : {
"Description" : "Window Cracked",
"uid" : "simplelogin:6"
},
}
}
I'm trying to understand querying in Firebase but am getting really confused.
What I want to do is the equivalent of this SQL query:
SELECT * FROM jobs WHERE uid="simplelogin:6"
Here is where i'm at in Angular:
var firebase = new Firebase(firebaseURL);
var jobs = firebase.child('jobs');
// BIND FIREBASE DATA TO LOCAL VARIALBES FOR 3 WAY DATA BINDING
$firebaseObject(jobs).$bindTo($scope, 'Jobs');
That pulls in all of the jobs which I can access, but I need to filter it somehow, and then bind that variable to the $scope.Jobs
variable.
How would that be accomplished?