rlamasb / Firebase.Xamarin

Light weight wrapper for Firebase Realtime Database REST API.
MIT License
149 stars 39 forks source link

OrderBy returning Bad Request #43

Open aleGuardiola opened 6 years ago

aleGuardiola commented 6 years ago

I want to OrderByChild but when I try it I got an exception of Bad Request

var fEvents = await client.Child("events").OrderBy("DateMilliseconds").OnceAsync();

when I use OrderByKey it works perfectly

euri16 commented 6 years ago

Same issue here

euri16 commented 6 years ago

@aleGuardiola solved that by adding a index rule in the firebase console of the field I'm using to order.

aleGuardiola commented 6 years ago

cool man thanks I ll check that. Gracias @euri16