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

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

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