ApiV2-GraphQL-Docs icon indicating copy to clipboard operation
ApiV2-GraphQL-Docs copied to clipboard

issue with pagination lastPage value

Open harjy02 opened this issue 3 years ago • 3 comments

The lastPage value in pagination doesn't seem to give the correct value, if the searched page exists it will always give 5000, but if a higher page is searched and that page doesn't exist it will just give that value: image image

harjy02 avatar Jan 22 '22 11:01 harjy02

I'm having this exact same issue, pagination is acting real funny.

Mitchures avatar Feb 13 '22 04:02 Mitchures

@Mitchures It's not just "acting real funny", it's just plain broken. I have this issue when paginating through characters. The only reliable values in the pageInfo response are perPage (which is useless as it's the same as the input) and hasNextPage. Seems the only way to get a reliable response for a correct total or lastPage right now is to keep querying until hasNextPage returns false.

ToshY avatar Feb 26 '22 15:02 ToshY

Yeah that's what I am currently doing as well. It's not ideal as I would love to show the number of results but heck it works for now. Would love to have this fixed though!

Mitchures avatar Feb 27 '22 06:02 Mitchures

Well I'm giving up on this getting fixed. Think it's safe to say this project is pretty much dead at this point (should've known from last release date).

ToshY avatar Oct 27 '22 21:10 ToshY