Basic resolvers are generated automatically once the types are declared.
However it is possible to override them with custom resolvers.
Sync resolvers
Sync resolvers can be used in both ASGI/WSGI and will be automatically wrapped
in sync_to_async when running async.
Async resolvers
Async resolvers can be used when running using ASGI.
Optimizing resolvers
When using custom resolvers together with the Query Optimizer Extension
you might need to give it a βhintβ on how to optimize that field
Take a look at the optimization hints
docs for more information about this topic.
Issues with Resolvers
It is important to note that overriding resolvers also removes default capabilities
(e.g. Pagination , Filter ), exception for relay connections . You can
however still add those by hand and resolve them: