Entity Collection

July 9, 2018 ยท View on GitHub

The ngrx-data library maintains a cache (EntityCache) of entity collections for each entity type in the ngrx store.

An entity_collection implements the EntityCollection<T> interface.

PropertyMeaning
idsPrimary key values in default sort order
entitiesMap of primary key to entity data values
filterThe user's filtering criteria
loadedWhether collection was filled by QueryAll; forced false after clear
loadingWhether currently waiting for query results to arrive from the server
changeStateWhen change-tracking is enabled, the ChangeStates of unsaved entities

You can extend an entity types with additional properties via entity metadata.