googlearchive / firebase-util

An experimental toolset for Firebase
http://firebase.github.io/firebase-util
MIT License
276 stars 67 forks source link

Paginate $key error #100

Open douwevdijk opened 7 years ago

douwevdijk commented 7 years ago

HI All,

I am using this line to activate pagination: ( no orderByChild or any query, just a straight URL )

var pageRef = new Firebase.util.Paginate(ref, '$key', {pageSize: 18});

It works, until I move on to the next page and then I am getting the error:

firebase.js:237 Uncaught Error: Query: When ordering by key, you may only pass one argument to startAt(), endAt(), or equalTo().

FYI, I am using Id's generated by Firebase ( push ). Can anyone assist? I am using the latest library and firebase 2.4.2.

Rgds, Douwe.

md-rashid commented 7 years ago

any updates ? did you solve this issue ?