Codebase list python-graphene-sqlalchemy / bfcc1f8b-0aa0-46e9-8a55-69cd4893d92b/main examples / nameko_sqlalchemy / service.py
bfcc1f8b-0aa0-46e9-8a55-69cd4893d92b/main

Tree @bfcc1f8b-0aa0-46e9-8a55-69cd4893d92b/main (Download .tar.gz)

service.py @bfcc1f8b-0aa0-46e9-8a55-69cd4893d92b/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)