Frequently Asked Questions (FAQ)¶
How to access Django request object in resolvers?¶
The request object is accessible via the info.context.request
object.
How to access the current user object in resolvers?¶
The current user object is accessible via the info.context.request.user
object.
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.