Get a list of all entries by content type
Log in to add to favouritesRequesting all entries for a content type can be achieved by using the search method on the client's entries property.
search(query: Query): Promise<PagedList<Entry>>
search(query: Query, linkDepth: number): Promise<PagedList<Entry>>
Returns
A Promise that will resolve with a Paged List of Entry
Example
const { Query, Op } = require("contensis-delivery-api");
const query = new Query(
Op.equalTo("sys.contentTypeId", "<content_type_id>"),
Op.equalTo("sys.versionStatus", "published")
);
ContensisClient.entries.search(query).then(function (entryList) {
entryList.items.forEach(item => (
console.log(item.entryTitle)
))
});