Check this issue on the github page if it helps
https://github.com/graphql-python/graphene-django/pull/1128
And if you made your custom middleware already... then you are fine, it is a onetime code (no maintenance is needed after you write it for the first time)