Represents the metadata for a "HasOne" relationship metadata in the ORM system,

Param: item

An instance of RelationshipMetadata containing the initial settings for the relationship. This can include the foreignKey and other properties relevant to establishing a "HasOne" relationship.

Hierarchy (view full)

Constructors

Properties

foreignKey: ForeignKeyProperty

The attribute in the associated entity that functions as a foreign key, establishing a link back to the partition key of the owning entity. This key is vital for maintaining the relationship's integrity and navigability.

propertyName: keyof default

The property name on the source entity that holds or references the related entity or entities. This name is used within the source entity's class definition to access the related entity.

Note: This class is abstract and cannot be instantiated directly. Instead, it should be extended by specific relationship metadata classes that define concrete types of relationships.

The entity class that is the target of the relationship. This specifies the class of the entity on the "other side" of the relationship.

type: "HasOne" = "HasOne"

A literal string identifying the type of relationship as "HasOne". This classification enables the ORM to apply appropriate handling logic specific to "HasOne" relationships.

Generated using TypeDoc