This is needed specifically for a future mongodb and mongoose support, because the lack of an active transaction is denoted by passing null or undefined as the session value.
But proxying those values (or any primitive values for that matter) is not supported by JavaScript.
This is needed specifically for a future
mongodb
andmongoose
support, because the lack of an active transaction is denoted by passingnull
orundefined
as thesession
value.But proxying those values (or any primitive values for that matter) is not supported by JavaScript.