Creates a Relator.
Fetches related data from primary data.
The Serializer to use for related data.
Optional options: Partial<RelatorOptions<PrimaryType, RelatedType>>Options for the relator.
Creates a Relator.
Fetches related data from primary data.
A getter for the Serializer to use for related data.
Options for the relator, a relatedName is required
 as it cannot always be loaded from the serializer.
Private _serializerInternal getGets related data from primary data.
Internal Gets related data from primary data.
Private internalPrivate optionsOptions for relator.
Static defaultDefault options. Can be edited to change default options globally.
Private serializerInternal Creates related identifiers
Optional options: SerializerOptions<RelatedType>Internal Gets related links from primary data and related data
Internal Gets related meta from primary data and related data
Internal Gets related relators
Internal Creates related resources
Optional options: Partial<SerializerOptions<RelatedType>>Optional helpers: Helpers<RelatedType>Optional relatorDataCache: Map<Relator<any, any>, Dictionary<any>[]>Internal Creates a Relationship.
Optional relatedDataCache: Dictionary<any>[]Generated using TypeDoc
The Relator class is used to generate top-level included data as well as resource-level relationships.
Example: