Entry List Options
Log in to add to favouritesEntry List Options is a structure that is used to describe details for requesting entry listing results.
Properties
Name | Type | Description |
---|---|---|
contentTypeId | string | The id of the content type. |
fieldLinkDepths | { string: number } | Object containing field paths to resolve linked entries for and the link depth to resolve the field to |
fields | string [...] | An array of field ids to restrict the fields returned for an entry. |
language | string | The language variation to return for each entry. |
linkDepth | number | The depth at which to resolve the full entry data for a linked entry or asset, with a maximum depth value of 10. |
order | string [...] | An array of field ids to order the results by. Descending order is specified using a prefixed '-'. |
pageOptions | PageOptions | An object specifying the pageSize and pageIndex. |
Example
ContensisClient.list
.get({
language: 'fr-FR',
linkDepth: 2,
fields: ['title', 'overview']
})
.then(function (entryList) {
entryList.items.forEach(item => (
console.log(item.title);
console.log(item.overview);
))
});