I need to fetch my data by a priority range, like you can with startAt/endAt in the JS, but in REST. Is it possible?
I believe this is now possible with the beta Queries API.
As per https://www.firebase.com/docs/beta/queries/rest.html:
The startAt parameter accepts whatever type you specify in orderBy. This query finds all dinosaurs at least 3 meters tall.
curl 'https://dinosaur-facts.firebaseio.com/.json?orderBy="height"&startAt=3'
And this query finds all dinosaurs starting with Stegosaurus.
curl 'https://dinosaur-facts.firebaseio.com/.json?orderBy="$key"&startAt="stegosaurus"'
This isn't yet possible with the REST API.
You can, however, run on Node.js client on your own server, and query your data in that way: https://www.firebase.com/docs/nodejs-quickstart.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With