I'm looking to get data where two fields equal what I'm passing in.
Here's an example of my code:
this.refApp
.orderByChild('userUid')
.startAt(uid).endAt(uid)
.orderByChild('jobId')
.startAt(jobId).endAt(jobId)
.on('value', (snap) => {
//This currently doesn't get returned.
});
In the above example I don't get any compiler errors and code seems fine. However, I hard coded the data so that it would return an object where uid and jobid are equal to.
I can get this to work for one orderByChild but when I do two like above it doesn't seem to do anything.