Codebase list python-graphene-sqlalchemy / cb295ea6-6291-4060-aa95-13facd57987b/upstream examples / nameko_sqlalchemy / service.py
cb295ea6-6291-4060-aa95-13facd57987b/upstream

Tree @cb295ea6-6291-4060-aa95-13facd57987b/upstream (Download .tar.gz)

service.py @cb295ea6-6291-4060-aa95-13facd57987b/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)