Skip to content
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

HttpServletRequest's problem #26

Closed
ghostxbh opened this issue Mar 5, 2019 · 2 comments
Closed

HttpServletRequest's problem #26

ghostxbh opened this issue Mar 5, 2019 · 2 comments

Comments

@ghostxbh
Copy link

ghostxbh commented Mar 5, 2019

Hello, I'd like to know how the HttpServletRequest request in the SPQR controller is passed to the service.

@kaqqao kaqqao transferred this issue from leangen/graphql-spqr Mar 5, 2019
@kaqqao
Copy link
Member

kaqqao commented Mar 5, 2019

Please open Spring Starter related issues in the appropriate project. I moved this one already.

The request object is available via DefaultGlobalContext#getNativeRequest (the method name changed in v0.0.4).

DefaultGlobalContext is the object passed as the GraphQL context by default (you can change this) and, as such, can be injected into service methods using @GraphQLRootContext.

@zl5465
Copy link

zl5465 commented Mar 5, 2019

Thank you,I'm looking forward to the new version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants