to Offset Limit
Converts forward pagination arguments to offset/limit.
firstdetermines the page size (defaults to defaultPageSize).aftercursor encodes the index of the last-seen item; this method decodes it and adds 1 so the returned offset points to the first item after that cursor.If
afteris absent, pagination starts from offset 0.