Hi Christ,
Thanks for your excelent work, I have learned a lot here.
I have one question related to filter and pagination using the Firebase RestAPI
In the collection bellow (It could be thousend of records) I want to apply pagination (each page has 5 records), but first filter the data by employeeType.
“-KnXYckzxR09a8hOmMGZ”: {
“firstName”: “Roy”,
“lastName”: “Mitchel”,
“employeeType”: “-KnXYckzxR09a8hOmMGZ”
},
“-KnXgF6MboH4euf0mSyI”: {
“firstName”: “Sean”,
“lastName”: “Adams”,
“employeeType”: “-KnXYckzxR09a8hOmMGZ”
},
“-KnWhBAmwyDTeUzlfYpf”: {
“firstName”: “Peter”,
“lastName”: “Cosby”,
“employeeType”: “-Kn2guobXZzsawyt66UO”
},
…
I tried something like this, but it is not possible use equalsTo and startAt together
https://xxxxxxxxx.firebaseio.com/employee.json?orderBy="employeeType"&equalTo="-KnXYckzxR09a8hOmMGZ"&limitToFirst=5&startAt="-KnXYckzxR09a8hOmMGZ"
I hope be clear explaining my problem, otherwise I can give you more information. How do you solve that?