application.resolvers package#
Subpackages#
- application.resolvers.mutation package
- Submodules
- application.resolvers.mutation.apikeys module
- application.resolvers.mutation.blob module
- application.resolvers.mutation.book module
- application.resolvers.mutation.bugs module
- application.resolvers.mutation.datafeed module
- application.resolvers.mutation.documents module
- application.resolvers.mutation.inventory module
- application.resolvers.mutation.motd module
- application.resolvers.mutation.notification module
- application.resolvers.mutation.sessions module
- application.resolvers.mutation.settings module
- application.resolvers.mutation.users module
- application.resolvers.mutation.weather module
- Module contents
- application.resolvers.query package
- Submodules
- application.resolvers.query.apikeys module
- application.resolvers.query.blob module
- application.resolvers.query.book module
- application.resolvers.query.bugs module
- application.resolvers.query.datafeed module
- application.resolvers.query.documents module
- application.resolvers.query.integrations module
- application.resolvers.query.inventory module
- application.resolvers.query.last_mutation module
- application.resolvers.query.motd module
- application.resolvers.query.notification module
- application.resolvers.query.sessions module
- application.resolvers.query.settings module
- application.resolvers.query.users module
- application.resolvers.query.weather module
- Module contents
Submodules#
application.resolvers.decorators module#
application.resolvers.decorators
- application.resolvers.decorators.handle_client_exceptions(func)#
Decorator that handles client-specific exceptions and returns error details to the client without crashing the application.
This decorator captures exceptions of type ClientError that occur within the decorated function and returns a structured error response containing the exception type and message.
- Parameters:
func (Callable) – The function to be wrapped by the decorator.
- Returns:
A wrapped function that handles ClientError exceptions.
- Return type:
Callable
- application.resolvers.decorators.typed(func)#
Decorator that automatically injects the ‘__typename’ field when returning dicts that don’t already have the field, based on function type hints.
Note that this decorator must be the first in any decorator chain, that is there may not be any decorators between this and the actual function.
- Parameters:
func (Callable) – The function to be wrapped by the decorator.
- Returns:
A wrapped function that injects the __typename field into the result.
- Return type:
Callable
Module contents#
application.resolvers