orderByChild not working (tested via REST API and JS)

168 views
Skip to first unread message

Dany Pell

unread,
Aug 30, 2016, 6:26:59 PM8/30/16
to Firebase Google Group

I have a users object in Firebase's database, and I am using for example orderByChild('email') to find users by email (can be username as well or any other property available....). The field is indexed.

Something strange since recently (since ~24 hours ago) -- it doesn't work on newly entered users.

I can fetch data that was there days ago, but not data that was entered within the last day.

I can do something like usersRef.child(userUID) and find a user fine -- it's really just the orderByChild that's failing.

The issue can also be experienced via the REST API, IE https://myApp.firebaseio.com/users.json?orderBy="lowerCaseUs‌​ername"&equalTo="{us‌​ername}"


Does it happen to you too?

Jacob Wenger

unread,
Aug 30, 2016, 6:35:53 PM8/30/16
to Firebase Google Group
Cross-post: http://stackoverflow.com/questions/39234699/firebase-orderbychild-not-working-for-newly-entered-data-new-data-since-24-hou

Please respect the community's time and do not cross-post or at least indicate when you do.

Dany Pell

unread,
Aug 30, 2016, 6:52:45 PM8/30/16
to Firebase Google Group
Alright - didn't know this Google group is merged with Stackoverflow thus creating duplicates.
Reply all
Reply to author
Forward
0 new messages