Codebase list python-graphene-sqlalchemy / 818eac4 examples / nameko_sqlalchemy / service.py
818eac4

Tree @818eac4 (Download .tar.gz)

service.py @818eac4raw · history · blame

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


class DepartmentService:
    name = 'department'

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