ClientSession | mongodb (original) (raw)

Optional[captureRejectionSymbol]

Parameters

Returns void

abortTransaction

Returns Promise<void>

addListener

Returns this

Returns this

advanceClusterTime

advanceOperationTime

commitTransaction

Returns Promise<void>

emit

Returns boolean

endSession

equals

eventNames

getMaxListeners

incrementTransactionNumber

inTransaction

whether this session is currently in a transaction or not

listenerCount

Parameters

Returns number

listeners

Parameters

Returns ClientSessionEvents[EventKey][]

off

Returns this

Returns this

on

Returns this

Returns this

once

Returns this

Returns this

prependListener

Returns this

Returns this

prependOnceListener

Returns this

Returns this

rawListeners

Parameters

Returns ClientSessionEvents[EventKey][]

removeAllListeners

Parameters

Returns this

removeListener

Returns this

Returns this

setMaxListeners

startTransaction

toBSON

withTransaction

Parameters

Returns Promise<T>

A raw command response or undefined

StaticaddAbortListener

Parameters

Returns Disposable

Disposable that removes the abort listener.

StaticgetEventListeners

Returns Function[]

StaticgetMaxListeners

Returns number

StaticlistenerCount

Returns number

Staticon

Returns AsyncIterator<any[], any, any>

An AsyncIterator that iterates eventName events emitted by the emitter

Returns AsyncIterator<any[], any, any>

Staticonce

Returns Promise<any[]>

Returns Promise<any[]>

StaticsetMaxListeners

Returns void