Skip to main content
Version: Next

FactoryOptions

Index

Properties

optionalconvertCustomTypes

convertCustomTypes?: boolean

optionalinitialized

initialized?: boolean

optionalkey

key?: string

Property name to use for identity map lookup instead of the primary key. This is useful for creating references by unique non-PK properties.

optionalmerge

merge?: boolean

optionalnewEntity

newEntity?: boolean

optionalnormalizeAccessors

normalizeAccessors?: boolean

optionalparentSchema

parentSchema?: string

optionalprocessOnCreateHooksEarly

processOnCreateHooksEarly?: boolean

Property onCreate hooks are normally executed during flush operation. With this option, they will be processed early inside em.create() method.

optionalrecomputeSnapshot

recomputeSnapshot?: boolean

optionalrefresh

refresh?: boolean

optionalschema

schema?: string