Codebase list python-graphene-sqlalchemy / upstream/2.1.2 examples / nameko_sqlalchemy / service.py
upstream/2.1.2

Tree @upstream/2.1.2 (Download .tar.gz)

service.py @upstream/2.1.2raw · 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)