An array of all list entries in the list with the supplied list id.
Fetches up to the number specified in PagingParameters.page_size of list entries in the list with the supplied list id.
Please note: the returned response has a different shape than when using a non-paginated request (see above).
A chunk of list entries with the maximum size specified in the query.
const { list_entries, next_page_token } = await affinity.lists.entries.all({
list_id: 123,
page_size: 10
})
console.log(`The first of ${list_entries.length} entries in this page is for`, list_entries?.[0].entity)
console.log(next_page_token
? `The next page token is '${next_page_token}'`
: 'No more pages to fetch'
)
Creates a new list entry in the list with the supplied list_id.
Notes:
The created list entry object.
Deletes a specific list entry.
boolean indicating whether the list entry was successfully deleted.
Fetches a list entry with a specified id.
The list entry object corresponding to the list_entry_id.
Returns an async iterator that yields all list entries in the list with the supplied list id. Each yielded array contains up to the number specified in PagingParameters.page_size of list entries. Use this method if you want to process the list entries in a streaming fashion.
Please note: the yielded list entries array may be empty on the last page.
Fetches all list entries in the list with the supplied list id.
Please note: the returned response has a different shape than when using a paginated request (see below)