Skip to main content
Version: 5.3

ManyToManyOptions <T, O>

Hierarchy

Index

Properties

optionalautoincrement

autoincrement?: boolean

optionalcascade

cascade?: Cascade[]

optionalcheck

check?: string | CheckCallback<O>

optionalcolumnType

columnType?: AnyString | ColumnType

optionalcomment

comment?: string

optionalconcurrencyCheck

concurrencyCheck?: boolean

optionalcustomOrder

customOrder?: string[] | number[] | boolean[]

optionalcustomType

customType?: Type<any, any>

optionaldefault

default?: null | string | number | boolean | string[] | number[]

optionaldefaultRaw

defaultRaw?: string

optionaleager

eager?: boolean

optionalentity

entity?: string | () => EntityName<T>

optionalextra

extra?: string

mysql only

optionalfieldName

fieldName?: string

optionalfieldNames

fieldNames?: string[]

optionalfixedOrder

fixedOrder?: boolean

optionalfixedOrderColumn

fixedOrderColumn?: string

optionalformula

formula?: string | (alias: string) => string

optionalgetter

getter?: boolean

optionalhidden

hidden?: boolean

optionalindex

index?: string | boolean

optionalinverseJoinColumn

inverseJoinColumn?: string

optionalinverseJoinColumns

inverseJoinColumns?: string[]

optionalinversedBy

inversedBy?: (string & keyof T) | (e: T) => any

optionaljoinColumn

joinColumn?: string

optionaljoinColumns

joinColumns?: string[]

optionallazy

lazy?: boolean

optionallength

length?: number

optionalmappedBy

mappedBy?: (string & keyof T) | (e: T) => any

optionalname

name?: string

optionalnullable

nullable?: boolean

optionalonCreate

onCreate?: (entity: O) => any

Type declaration

    • (entity: O): any
    • Parameters

      • entity: O

      Returns any

optionalonUpdate

onUpdate?: (entity: O) => any

Type declaration

    • (entity: O): any
    • Parameters

      • entity: O

      Returns any

optionalorderBy

orderBy?: QueryOrderMap<T> | QueryOrderMap<T>[]

optionalowner

owner?: boolean

optionalpersist

persist?: boolean

optionalpivotEntity

pivotEntity?: string | () => EntityName<any>

optionalpivotTable

pivotTable?: string

optionalprecision

precision?: number

optionalprimary

primary?: boolean

optionalreferenceColumnName

referenceColumnName?: string

optionalreferencedColumnNames

referencedColumnNames?: string[]

optionalscale

scale?: number

optionalserializedName

serializedName?: string

optionalserializedPrimaryKey

serializedPrimaryKey?: boolean

optionalserializer

serializer?: (value: any) => any

Type declaration

    • (value: any): any
    • Parameters

      • value: any

      Returns any

optionalsetter

setter?: boolean

optionalstrategy

strategy?: LoadStrategy

optionaltrackChanges

trackChanges?: boolean

optionaltype

type?: string | Date | array | Constructor<AnyEntity<any>> | enumArray | AnyString | Type<any, any> | ColumnType | Constructor<Type<any, any>> | ObjectId | () => unknown

optionalunique

unique?: string | boolean

optionalunsigned

unsigned?: boolean

optionalversion

version?: boolean