warrenday / graphql-network-inspector

A better network inspector for viewing and debugging GraphQL requests.
MIT License
485 stars 47 forks source link

Support Persisted Queries #71

Closed ayroblu closed 1 year ago

ayroblu commented 2 years ago

Is your feature request related to a problem? Please describe. Persisted queries are a production way to serve graphql, but they don't show up in the inspector

Describe the solution you'd like Support showing persisted queries

Describe alternatives you've considered Reading the network tab

Additional context Can try this by going to twitter.com

Odonno commented 1 year ago

I made a PR that detects GET/Persisted Query requests #81. @ayroblu Because each framework has its own implementation, what I have done may not work for you. If that's the case, are you able to provide an example of a GET request (url + headers) that should work? So that I can tweak the code to make it work.

ayroblu commented 1 year ago

Sorry for the late response. I tried the latest version on twitter.com and I still don't see any requests. Not sure if I'm missing something

Odonno commented 1 year ago

Well, I just looked at the HTTP requests on twitter.com and it seems that they are not using a traditional GraphQL approach. There is no operationName or query. I don't see how we can do anything if the pattern doesn't follow the conventions.