Skip to content
This repository has been archived by the owner on Nov 26, 2021. It is now read-only.

allow limits > 1000 in a query #37

Open
bnchdrff opened this issue Nov 10, 2016 · 4 comments
Open

allow limits > 1000 in a query #37

bnchdrff opened this issue Nov 10, 2016 · 4 comments
Assignees

Comments

@bnchdrff
Copy link
Contributor

the contentful api only allows up to 1000 items returned in a given query. it'd be nice to provide a query batcher that lets you build a site with more than 1000 entries.

@Khaledgarbaya
Copy link
Contributor

Hi @bnchdrff ,

Actually that make sense, and I guess we need to change this logic here if I am not mistaken, and to handle pagination using the query params, skip and limit, actually we have this logic already implemented in contentful-export and contentful-space sync.
Here is the snippet of code.

@Khaledgarbaya
Copy link
Contributor

One more thing to be careful of that sometimes entries with a lot of text in one page could exceed the maximum response size which is 8MB so I guess the setting the limit should be up to the user based on his content, so he can lower the limit value to have responses < 8MB

@bnchdrff
Copy link
Contributor Author

what if this feature was added into the js api client itself?

@Khaledgarbaya
Copy link
Contributor

We can't do that since that will be hiding the actual api functionality also to give users control over their rate limit.

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

No branches or pull requests

3 participants