-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reuse the code of Extract
when implementing Service
.
#147
Comments
I think we could look into making Would have to think a bit more about the design however. Or maybe there is a totally different way of making extractors usable from services that don't require these bits being public 🤔 If you wanna ship something in |
I was able to clean up the API of |
So we only need to change |
Pretty much 😅 I still wanna do some experimentation and see what its actually like to use. |
I've been thinking about this and actually think its fine to make the methods |
Feature Request
Motivation
I want to implement a
Service
for GraphQL query execution so as to avoid boilerplate code like the following.https://github.com/async-graphql/examples/blob/7e3304e406adaff8d28a025becd91867ecae199a/axum/starwars/src/main.rs#L8
I have implemented a GraphQL request extractor, I want to implement
Service
can reuse it.But I cannot use
RequestParts::new
because it ispub(crate)
, so should we change topub
?Or there is a better solution, please tell me. 🙂
The text was updated successfully, but these errors were encountered: