-
Notifications
You must be signed in to change notification settings - Fork 441
BUG Database query - range not working when value is number. #87
Comments
I just tried this on both iOS and Android and didn't encounter an issue. In my database I tried with both Integer and String types, and set the type of the range property accordingly. So if the type is Integer in the DB the range query is 1, instead of '1'. This works as expected for me. Note that I erased the DB contents in between tests to make sure the types in the DB are correctly set. I tested on an iPhone 6s device and an Android S3 (running Android 4.4) simulator. Any idea what's different on your end? |
Even I am facing the above issue |
@sivsushruth Would you be so kind to share some details as well? |
Same problem here, while using this :
Then I get the following error :
If I use string inside range value, there is no bug |
@GrEg00z is |
It was an error from my part, now it works good ! Sorry for this |
If there is still an issue for other folks, please upgrade to 4.0.0 (which I'm releasing later today). |
I don't understant why, but the problem comes back for me, exactly in the same context than my previous post :
So if I use number value instead of string value in ranges array , I get the following error :
I've updated to 4.0.3, I get the same problem. If I use range instead of ranges, then it only working with string value. The problem seems to come only when we have numeric value in firebase data, and try to request on this properties |
So, this is wierd.
So i have this structure:
0:
category_id: 1
date: "dsasad"
deleted: false
description: "This is some stuff - this is quite wierd."
id: 1
path: "/uploads/user/images/1.png"
user_id: "Bulgaria"
When i try query it with:
When i change firebase category_id to "1"( instead of just 1 ), then it works. If i try to change value: 1, then console errors out.
The text was updated successfully, but these errors were encountered: