Skip to main content
Version: Next

UpsertManyOptions <Entity, Fields>

Options for em.upsertMany(), adds batch size control.

Hierarchy

Index

Properties

optionalbatchSize

batchSize?: number

optionalinheritedconvertCustomTypes

convertCustomTypes?: boolean

optionalinheritedctx

ctx?: any

optionalinheriteddisableIdentityMap

disableIdentityMap?: boolean

optionalinheritedfilters

filters?: FilterOptions

optionalinheritedinflightQueryAbortStrategy

inflightQueryAbortStrategy?: InflightQueryAbortStrategy

Strategy used when the signal fires while the query is in flight. See InflightQueryAbortStrategy for caveats around streams and MongoDB.

optionalinheritedloggerContext

loggerContext?: LogContext

optionalinheritedlogging

logging?: LoggingOptions

optionalinheritedonConflictAction

onConflictAction?: merge | ignore

optionalinheritedonConflictExcludeFields

onConflictExcludeFields?: AutoPath<Entity, Fields, *, 9>[]

optionalinheritedonConflictFields

onConflictFields?: RawQueryFragment<string> | keyof Entity[]

optionalinheritedonConflictMergeFields

onConflictMergeFields?: AutoPath<Entity, Fields, *, 9>[]

optionalinheritedonConflictWhere

onConflictWhere?: FilterQuery<Entity>

optionalinheritedschema

schema?: string

optionalinheritedsignal

signal?: AbortSignal

AbortSignal that cancels the query when fired.

optionalinheritedunionWhere

unionWhere?: ObjectQuery<Entity>[]

sql only

optionalinheritedunionWhereStrategy

unionWhereStrategy?: union-all | union

sql only