Frequently Asked Questions (FAQ)
How to access Django request object in resolvers?
The request object is accessible via the get_request
method.
How to access the current user object in resolvers?
The current user object is accessible via the get_current_user
method.
Autocompletion with editors
Some editors like VSCode may not be able to resolve symbols and types without explicit strawberry.django
import. Adding following line to code fixes that problem.
Example project?
See complete Django project from github repository folder examples/django .