Closed Jordan-Nelson closed 2 years ago
Given that iOS defaults to page 0, page
should probably have a default value of 0.
Given that iOS defaults to page 0
Is this default value set within amplify-flutter iOS implementation or amplify-ios please?
@HuiSF I will have to check. This was just an observation based on testing. I have not looked into where it is set.
Should be fixed by #1533
Describe the bug QueryPagination() has no required arguments.
page
is optional andlimit
defaults to 100. However, the query will fail on Android if no value page is supplied.page
should either be required or default to 0. On iOS, the first page is returned if no page is supplied.To Reproduce Below is an integration test which will throw an exception on Android.
Expected behavior
page
should either be required or default to 0. Ifpage
is not required, the query should not throw an exception without a supplied value.Screenshots If applicable, add screenshots to help explain your problem.
Platform Amplify Flutter current supports iOS and Android. This issue is reproducible in (check all that apply): [x] Android [] iOS