nomadcoders / nuber-eats-backend

The Backend of Nuber Eats Clone: NestJS, TypeORM, Jest, GraphQL

Home Page:https://nomadcoders.co/nuber-eats/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

12.1, Issue with connection always returning undefined

ianvalls90 opened this issue · comments

commented

This block of code here, is not working (probably due to module updates over time I guess) :

context: ({ req, connection }) => {
        if (req) {
          return { user: req['user'] };
        } else {
          console.log(connection);
        }

'connection' is always returning undefined