-
Notifications
You must be signed in to change notification settings - Fork 4
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
Limiting results #20
Comments
Good idea. Definitely worth using when testing other functions... This could be:
|
Alternatively:
|
Right, the confusing part about using integers though is that the user may be thinking if they set Alternatively, we could have user's input integers for how many records they want, then keep track of how many we've downloaded, etc. However, this gets complicated, maybe something to do later on. |
I think it may be clarified in the docs. We can also call the argument
Actually why would anybody be determined to fetch only some small number of records? Limiting number of requests makes sense for testing purposes. |
Noticed something while making fix in #18 - that we probably need to give user power to determine how much data they get back.
Our while loop will just keep going, getting more data if a resumptionToken is available.
We may not be able to expose a parameter that does this exactly, like
limit = 10
, and you get 10 results, but at least it could be something likelimit = "all"
(all results)limit = "one"
(do one HTTP request, then stop, so even if get a resumptionToken, stop anyway)The text was updated successfully, but these errors were encountered: