Codebase list python-graphene-sqlalchemy / d93b2134-a931-4220-b86f-4c0ad356f03b/upstream examples / nameko_sqlalchemy / service.py
d93b2134-a931-4220-b86f-4c0ad356f03b/upstream

Tree @d93b2134-a931-4220-b86f-4c0ad356f03b/upstream (Download .tar.gz)

service.py @d93b2134-a931-4220-b86f-4c0ad356f03b/upstreamraw · 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)