I ran into this problem using NestJS, and this section of the documentation included the correct pattern to fix the problem: https://docs.nestjs.com/techniques/mongodb#sessions
NestJS