You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
getContentTypes should allow an options object similar to getEntries that allows the response limit and/ or pagination to be used, or documentation should be added to show how to use limit or pagination in the query parameter. This would allow more than 100 content types to be retrieved.
Actual Behavior
There is no ability to pass an options object to the getContentTypes call. It only accepts a single parameter called query and it is unclear how to use this field to retrieve more content types, or if it is possible. I have tried the following options for the query string and had no success with any of them limit=1000, limit: 1000, limit:1000 etc. This makes this call useless in a space with > 100 content types as there is no way to increase the limit or paginate
Possible Solution
Add a parameter to the getContentTypes call that matches the options object on getEntries or provide documentation for what string to pass to the query parameter
Steps to Reproduce
Run the following query on a space with >100 content types: const allContentTypes = await client.getContentTypes();
Context
We are using the contentful Javascript SDK in our project but I have not been able to make this call to retrieve all of our content types because of the limiting issue. I can achieve this with an API call to the content delivery API but would prefer to stick to one method of querying content
The text was updated successfully, but these errors were encountered:
The limit for this endpoint is fixed to 100. If you have more than one hundred content types, you can call the endpoint again set the skip argument to the number of content types you already fetched.
Expected Behavior
getContentTypes
should allow an options object similar togetEntries
that allows the response limit and/ or pagination to be used, or documentation should be added to show how to use limit or pagination in the query parameter. This would allow more than 100 content types to be retrieved.Actual Behavior
There is no ability to pass an options object to the
getContentTypes
call. It only accepts a single parameter calledquery
and it is unclear how to use this field to retrieve more content types, or if it is possible. I have tried the following options for the query string and had no success with any of themlimit=1000
,limit: 1000
,limit:1000
etc. This makes this call useless in a space with > 100 content types as there is no way to increase the limit or paginatePossible Solution
Add a parameter to the
getContentTypes
call that matches the options object ongetEntries
or provide documentation for what string to pass to the query parameterSteps to Reproduce
const allContentTypes = await client.getContentTypes();
Context
We are using the contentful Javascript SDK in our project but I have not been able to make this call to retrieve all of our content types because of the limiting issue. I can achieve this with an API call to the content delivery API but would prefer to stick to one method of querying content
The text was updated successfully, but these errors were encountered: