Hi @Filip Gajdosik,
Thanks for reaching out.
Paging is designed to return a limited set of data. This is by design for APIs that can return large sets of data, so the client and server do not get overwhelmed. Most APIs that support paging have an upper limit on how much you can request at once irrelevant of how much you ask for.
You have to keep calling the API with the next link until you get all the data. This is how paging works and there is no workaround. You can read all about paging in the Graph API here. Note that the specifics of paging various by the resource the API is wrapping but in general if you ask for $top=X
then the API will return at most X records. If X is greater than what the underlying API allows it may either error or return the server-specified max results. This is by design and not something you can change.
Hope this helps.
If the answer is helpful, please click Accept Answer and kindly upvote. If you have any further questions about this answer, please click Comment.