Rank 2: Process
I wanted to implement pagination in my application. As I understand it, for scrolling pagination I should use "Cursor pagination", which is a nicer solution in most cases.
However, in my application, I need the ability for the user to "jump" a few pages further. So if I understand correctly I should use:" Offset pagination".
However, I have a problem understanding how to display the number of available pages before. Is there any way to get the amount of all the documents in the collection without downloading them first?