febus982/bootstrap-python-fastapi

View on GitHub
src/http_app/routes/graphql/resolvers.py

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
from domains.books import BookService, dto


async def list_books():
    book_service = BookService()
    books = await book_service.list_books()
    return [dto.Book.model_validate(x, from_attributes=True) for x in books]