ChildDefinition
Generic types: | P T |
The definition of how to access the child data from a parent entity.
Properties
Name | Type | Description |
---|---|---|
childEntity | string | The fieldName we used to register the entity in the provider. |
childFeature | string | The name of the feature that contains the child data. |
childSelector |
| The selector to retrieve the child data from the store. |
parentEntity | string | The name of the parent entity The parentFeature and parentEntity allow us to get access to the parent adapter and other things we need to add and delete items from the parent entity |
parentFeature | string | The feature the parent entity is in |
parentField | keyof P | The name of the field in the parent that contains the child IDs |