Find graphene mutation/query from WSGIRequest it self

24 Views Asked by At

I have a middleware class that's before the request reaches the code itself, I want to figure out what mutation/query is begin called here

class CustomMiddleware:
    def __init__(self, get_response):
        self.get_response = get_response

    def __call__(self, request): <--- how to figure it out using the WSGI request
        data = self.doTheMagic(request)

        if data:
           request.data = data

        response = self.get_response(request)
  
        return response
0

There are 0 best solutions below