-
Notifications
You must be signed in to change notification settings - Fork 279
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Query pagination: total
field is always greater than results count by 1
#2202
Comments
Signed-off-by: Shanin Roman <shanin1000@yandex.ru>
So right now we are calculating |
[8 Jun 2022] Bogdan Mingela (@Mingela)
Since the behaviour is the one that SDK developers want, there's no point in subtracting 1 on the server side. |
As per yet another miscommunication, I believe that we need to change the implementation such that the total is the number of values returned in the top-most level of an iterable container before pagination. I.e. @Mingela Please confirm that this is what you want. |
I think so, though the example is a bit confusing, I don't expect a list of lists returned as a query result. |
Signed-off-by: Shanin Roman <shanin1000@yandex.ru>
Signed-off-by: Shanin Roman <shanin1000@yandex.ru>
Signed-off-by: Shanin Roman <shanin1000@yandex.ru>
Signed-off-by: Shanin Roman <shanin1000@yandex.ru>
Signed-off-by: Shanin Roman <shanin1000@yandex.ru> Signed-off-by: BAStos525 <jungle.vas@yandex.ru>
Repro
docker compose up
FindAllDomains
& some great pagination limit such as15
Expected output
Expected that
total
will be less than limit and equals to results count.Actual output
In YAML format:
The text was updated successfully, but these errors were encountered: