GitHub

DaffCollection

A collection of items that is paginable, sortable, and filterable.

interface DaffCollection<T extends DaffIdentifiable = DaffIdentifiable> {
  metadata: DaffCollectionMetadata
  data: Record<T['id'], T>
}

Properties

Name Type Description
metadata DaffCollectionMetadata The collection metadata that contains info about the collection. Includes page, sorting, filtering, and total number of items.
data Record<T['id'], T> The current page of items according to the sorting and filtering.