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

Tybot204 picture Tybot204  路  3Comments

limenutt picture limenutt  路  3Comments

Janushan picture Janushan  路  3Comments

laukaichung picture laukaichung  路  3Comments

glentakahashi picture glentakahashi  路  3Comments