Papooch / nestjs-cls

A continuation-local storage (async context) module compatible with NestJS's dependency injection.
https://papooch.github.io/nestjs-cls/
MIT License
389 stars 23 forks source link

feat(transactional): enable adapters to opt out of transactional proxy support #160

Closed Papooch closed 4 days ago

Papooch commented 4 days ago

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.