skip to Main Content

throw new TypeError('Invalid argument type'); from{mypath}Desktopredditnode_modules@redisclientdistlibclientRESP2encoder.js:17 t

I am following ben's typescript GraphQL Redis tutorial I am new to typescript and first time trying redis when I add the property req.session.userId= user.id; TypeError: Invalid argument type at encodeCommand (C:Usersvikash patelDesktopredditnode_modules@redisclientdistlibclientRESP2encoder.js:17:19 my main.ts code declare module "express-session" {…

VIEW QUESTION

how to configure nest/Bull redis connection

I am using BullModule in nest.js. when I connect to a local redis it works: const REDIS = { host: 'localhost', }; @Module({ imports: [ TaskTypesModule, TasksModule, ScheduleModule.forRoot(), BullModule.forRoot({ // @ts-ignore redis: REDIS, }), ], controllers: [AppController], providers: [AppService, PrismaService],…

VIEW QUESTION
Back To Top
Search