Type-graphql: Get Context in Resolvers

Created on 9 Apr 2019  路  1Comment  路  Source: MichalLytek/type-graphql

Sorry if I missing something, but i cant find a way to access the Context from a Resolver function. At least I need the user Object in a Resolver function to return User related stuff.
How to achieve that?

Question Solved

Most helpful comment

nvm
its @Ctx() context: Context

>All comments

nvm
its @Ctx() context: Context

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Janushan picture Janushan  路  3Comments

robertchung97 picture robertchung97  路  3Comments

MichalLytek picture MichalLytek  路  3Comments

winuxue picture winuxue  路  4Comments

Tybot204 picture Tybot204  路  3Comments