See the solution here: Can I have a graphQL API as a upstream using kong gateway? - #5 by rviegas
I hope this helps