Resolve specific service per request #8353
Unanswered
jamiewinder
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a service which I know should be scoped per HTTP request in all cases, whether it's used in a query, mutation, data loader, etc.
I don't think there is a way to register it as such though?
According to this page (v15):
https://chillicream.com/docs/hotchocolate/v15/server/dependency-injection
I can alter the meaning of 'scoped' if I want to, but the comments there about EF etc. still apply to me, so I'm not wanting to alter this.
I only want to resolve my service per request. Is this possible?
Beta Was this translation helpful? Give feedback.
All reactions