You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 4, 2023. It is now read-only.
I left another issue (#319) about null not working with EQUAL_TO. This is somewhat related to that issue, but with START_AT. I'm trying to fetch data based on price property. The value of price can either go from 0 (free article) to anything higher.
If I put 0 to the START_AT range, the snapshot function will never fire (neither does the then promise):
firebase.query(snapshot=>{console.dump(snapshot);// This never fires},"/articles",{singleEvent: true,orderBy: {type: firebase.QueryOrderByType.CHILD,value: "price"},range: {type: firebase.QueryRangeType.START_AT,value: 0}}).then(()=>{console.log("TEST");// This never fires either!});
If I set the START_AT value to 1 instead, it works. The same type of query works with the official Firebase Node.js (Admin):
admin.database().ref("/articles").orderByChild("price").startAt(0).once("value").then(snapshot=>{console.log(snapshot.val());// Logs all articles});
The text was updated successfully, but these errors were encountered:
NordlingDev
changed the title
Query range with START_AT fetching data as expected
Query range with START_AT not fetching data as expected
Mar 23, 2017
I left another issue (#319) about
null
not working withEQUAL_TO
. This is somewhat related to that issue, but withSTART_AT
. I'm trying to fetch data based onprice
property. The value ofprice
can either go from 0 (free article) to anything higher.I have these articles in my database:
If I put
0
to theSTART_AT
range, the snapshot function will never fire (neither does thethen
promise):If I set the
START_AT
value to1
instead, it works. The same type of query works with the official Firebase Node.js (Admin):The text was updated successfully, but these errors were encountered: