Codebase list python-graphene-sqlalchemy / 3e1ed097-8162-4eb9-a0de-a4b4537c6643/main examples / nameko_sqlalchemy / service.py
3e1ed097-8162-4eb9-a0de-a4b4537c6643/main

Tree @3e1ed097-8162-4eb9-a0de-a4b4537c6643/main (Download .tar.gz)

service.py @3e1ed097-8162-4eb9-a0de-a4b4537c6643/mainraw · 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)