List entries by content type
Created by Alex Pop, last modified by Jmoo on 10 Feb 2020
Lists entries by content type id or by passing an EntryListOptions object as an argument.
list(contentTypeIdOrOptions: string | EntryListOptions): Promise<PagedList<Entry>>
Returns
Example
client.entries.list({
contentTypeId: 'movie',
versionStatus: 'published',
language: 'fr-FR',
order: ['entryTitle'],
pageOptions: {
pageSize: 50
}
})
.then(result => {
console.log('API call result: ', result);
})
.catch(error => {
console.log('API call fetch error: ', error);
});