DEV Community

Discussion on: Signup and Login CQRS Pattern with Nest JS, Passport and GraphQL

Collapse
 
sk8guerra profile image
Jorge Guerra

Brooo I've alrady solved it. jajaja it was actually tough.

Thread Thread
 
eliotis profile image
Takis Koumoutsakos

Please share how you solved it

Thread Thread
 
sk8guerra profile image
Jorge Guerra

Here it is:

export const Context = createParamDecorator(
    (data, [root, args, ctx, info]) => ctx
);
Enter fullscreen mode Exit fullscreen mode

In @nestjs/core 6.0.0 you can access the context like that.

Does it solve your problem?

Thread Thread
 
eliotis profile image
Takis Koumoutsakos

Thanks for your reply Jorge, will try later.