Add custom context #1152
Answered
by
pradel
flashtheman
asked this question in
Q&A
Add custom context
#1152
-
I would like to add a custom context so I don't have add the same code in each of my resolver functions. Is there some way to do this?
I would like to use it for giving each api request a typeorm Entity Manager instance so I can wrap each request into an SQL transaction. |
Beta Was this translation helpful? Give feedback.
Answered by
pradel
Jul 3, 2021
Replies: 1 comment 4 replies
-
Do you mean something like this?
|
Beta Was this translation helpful? Give feedback.
4 replies
Answer selected by
flashtheman
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Do you mean something like this?