INNER CODE UNIT · Python
Query
phalt/django-api-domains · example_domain/apis.py:78
class Query:
book = graphene.Field(BookEntity)
def resolve_book(self, info):
logger.info(f"graphQL query for book with id {info.get('id')}")
book = BookService.get_book(id=info.get('id'))
return BookEntity(
name=book['name'],
author_name=book['author_name'],
)