Codebase list python-graphene-sqlalchemy / 338cba6 examples / nameko_sqlalchemy / service.py
338cba6

Tree @338cba6 (Download .tar.gz)

service.py @338cba6raw · history · blame

#!/usr/bin/env python
from nameko.web.handlers import http

from .app import App


class DepartmentService:
    name = 'department'

    @http('POST', '/graphql')
    def query(self, request):
        return App().query(request)