Skip to main content
Version: 6.4

CreateOptions <Convert>

Index

Properties

optionalconvertCustomTypes

convertCustomTypes?: Convert

convert raw database values based on mapped types (by default, already converted values are expected)

optionalmanaged

managed?: boolean

creates a managed entity instance instead, bypassing the constructor call

optionalpartial

partial?: boolean

this option disables the strict typing which requires all mandatory properties to have value, it has no effect on runtime

optionalpersist

persist?: boolean

persist the entity automatically - this is the default behavior and is also configurable globally via persistOnCreate option

optionalschema

schema?: string

create entity in a specific schema - alternatively, use wrap(entity).setSchema()