Skip to main content
Version: Next

RequestContext

Uses AsyncLocalStorage to create async context that holds the current EM fork.

Index

Constructors

constructor

Properties

readonlyid

id: number = ...

readonlymap

Accessors

em

Methods

staticcreate

  • create(em, next, options): T

staticcurrentRequestContext

  • Returns current RequestContext (if available).


    Returns undefined | RequestContext

staticenter

  • enter(em, options): void

staticgetEntityManager