firebase - beginAt, endAt using index instead of priority -
is there way use beginat , endat index instead of priority can client-side pagination it?
i assign .priority non-null values sorting.
you can using second argument startat / endat.
note priority takes precedence when ordering messages, you'll need priority same (ie null) items want sort index.
you this:
ref.startat(null, indextostartat).endat(null, indextoendat);
Comments
Post a Comment