Skip to content
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

Automatic Pagination #690

Open
gavinr opened this issue Apr 14, 2020 · 2 comments
Open

Automatic Pagination #690

gavinr opened this issue Apr 14, 2020 · 2 comments

Comments

@gavinr
Copy link
Contributor

gavinr commented Apr 14, 2020

Many of the ArcGIS REST API endpoints have "max items returned" limits. For example, if my group has 250 items in it, a call to https://www.arcgis.com/sharing/rest/content/groups/${groupId}/search will only return the first 100 items.

As of right now, a user of arcgis-rest-js has to handle paging through the items in this case.

I would request that we add an option to "Automatically paginate" through and get all the items (see similar concept in the GitHub REST API JavaScript library)

I realize this is a complex feature, so I am interested to know if the maintainers think this feature should be included in this project or not, and if so, discussion on how it might be achieved and implemented.

Thanks!

@jgravois
Copy link
Contributor

ahh. the holy grail. Esri/geoservices-js#35

just my two cents, but i think this would be popular enough to warrant including in the existing packages. that said, it might make it easier to test out the idea in a new package first.

@gavinr
Copy link
Contributor Author

gavinr commented May 2, 2022

I've created a package that has this functionality: https://github.com/gavinr/query-all-features#query-all-features. I'm looking for others to use it and provide feedback. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants