NodeJs, Apollo, and typescript server hang on session storage

The problem is redis. With newer versions it saves the keys differently.

If you want to use the same code as Ben, you have to use legacyMode:

import { createClient } from 'redis';
const RedisStore = connectRedis(session);
const redisClient = createClient({ legacyMode: true });
await redisClient.connect();

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top