Skip to main content
Module

x/typeorm/src/metadata-args/RelationMetadataArgs.ts>RelationMetadataArgs

Forked from https://github.com/typeorm/typeorm
Latest
interface RelationMetadataArgs
import { type RelationMetadataArgs } from "https://deno.land/x/typeorm@v0.2.23-rc10/src/metadata-args/RelationMetadataArgs.ts";

Arguments for RelationMetadata class.

Properties

readonly
target: Function | string

Class to which this relation is applied.

readonly
propertyName: string

Class's property name to which this relation is applied.

readonly
isLazy: boolean

Indicates if this relation will be lazily loaded.

readonly
relationType: RelationType

Type of relation. Can be one of the value of the RelationTypes class.

readonly
type: RelationTypeInFunction

Type of the relation. This type is in function because of language specifics and problems with recursive referenced classes.

readonly
optional
inverseSideProperty: PropertyTypeFactory<any>

Inverse side of the relation.

readonly
options: RelationOptions

Additional relation options.

readonly
optional
isTreeParent: boolean

Indicates if this is a parent (can be only many-to-one relation) relation in the tree tables.

readonly
optional
isTreeChildren: boolean

Indicates if this is a children (can be only one-to-many relation) relation in the tree tables.