createParamDecorator with services? #1251
Answered
by
MichalLytek
kevin-mitchell
asked this question in
Q&A
-
Looking at this example I wonder how I might be able to use a service within this function. For example, if my Thank you! |
Beta Was this translation helpful? Give feedback.
Answered by
MichalLytek
Mar 28, 2022
Replies: 1 comment 1 reply
-
You should do all the heavy operation and populate the context before the GraphQL execution begins, just like you decode the jwt and put payload in context. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
kevin-mitchell
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You should do all the heavy operation and populate the context before the GraphQL execution begins, just like you decode the jwt and put payload in context.