Abstract
Internal
Constructs an instance of an Entity.
data needed to construct an instance of an entity viewerContext - the ViewerContext reading this entity id - the ID of this entity databaseFields - all underlying fields for this entity's data selectedFields - selected fields for this entity from TSelectedFields type
This should only be overridden in cases where additional data validation is needed. The params should not be modified when calling super during constructions.
EntityAssociationLoader for this entity
all underlying fields from this entity's data
Get a underlying field from this entity's data
the field to get
the value of the field or undefined if not loaded with that field
the ViewerContext authorized to read this entity
Static
loaderVend loader for loading an entity in a given query context.
viewer context of loading user
query context in which to perform the load
A readonly entity exposes only the read functionality of an Entity. Used as the base type for most entity operations excluding mutations.
This is also useful as a base class for Entities that should not be mutated, such as: