<Firestore Order By UserId with highest priority> ...
# stackoverflow
u
Firestore Order By UserId with highest priority I'm working on a project in which I need to paginate through results in order to load the users with the highest priority in the DB. The else block is the initial load of users and the if block should control the pagination however I am getting empty results (0 documents) on the pagination call while getting the users successfully on the initial call. I have 41 test documents and the limit is set to 20 so I should get 2 full pages +1 extra user on the third however I can only get the first...