Skip to main content
Version: Next

ForkOptions

Index

Properties

optionalclear

clear?: boolean

do we want a clear identity map? defaults to true

optionalcloneEventManager

cloneEventManager?: boolean

do we want to clone current EventManager instance? defaults to false (global instance)

optionaldisableContextResolution

disableContextResolution?: boolean

use this flag to ignore the current async context - this is required if we want to call em.fork() inside the getContext handler

optionaldisableTransactions

disableTransactions?: boolean

disable transactions for this fork

optionalflushMode

flushMode?: FlushMode

set flush mode for this fork, overrides the global option can be overridden locally via FindOptions

optionalfreshEventManager

freshEventManager?: boolean

do we want to use fresh EventManager instance? defaults to false (global instance)

optionalkeepTransactionContext

keepTransactionContext?: boolean

should we keep the transaction context of the parent EM?

optionalloggerContext

loggerContext?: Dictionary

default logger context, can be overridden via FindOptions

optionalschema

schema?: string

default schema to use for this fork

optionaluseContext

useContext?: boolean

use request context? should be used only for top level request scope EM, defaults to false